public static String buildSecretFromJwk ( final String json ) { CommonHelper . assertNotBlank ( "json" , json ) ; try { final OctetSequenceKey octetSequenceKey = OctetSequenceKey . parse ( json ) ; return new String ( octetSequenceKey . toByteArray ( ) , "UTF-8" ) ; } catch ( final UnsupportedEncodingException | ParseException e ) { throw new TechnicalException ( e ) ; } }
Build the secret from the JWK JSON .