Package com.nimbusds.jose.util
Class KeyUtils
- java.lang.Object
-
- com.nimbusds.jose.util.KeyUtils
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SecretKeytoAESKey(SecretKey secretKey)Returns the specified secret key as a wrapped secret key with its algorithm set to "AES".
-
-
-
Method Detail
-
toAESKey
public static SecretKey toAESKey(SecretKey secretKey)
Returns the specified secret key as a wrapped secret key with its algorithm set to "AES". If the input key algorithm is "AES" it is returned unmodified.- Parameters:
secretKey- The secret key,nullif not specified.- Returns:
- The AES secret key,
nullif not specified.
-
-