public static JsonWebKey fromAes ( SecretKey secretKey ) { if ( secretKey == null ) { return null ; } return new JsonWebKey ( ) . withK ( secretKey . getEncoded ( ) ) . withKty ( JsonWebKeyType . OCT ) ; }
Converts AES key to JSON web key .