Package com.nimbusds.jose.jwk
Class KeyConverter
- java.lang.Object
-
- com.nimbusds.jose.jwk.KeyConverter
-
public class KeyConverter extends java.lang.ObjectKey converter.
-
-
Constructor Summary
Constructors Constructor Description KeyConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.security.Key>toJavaKeys(java.util.List<JWK> jwkList)Converts the specified list of JSON Web Keys (JWK) their standard Java class representation.
-
-
-
Method Detail
-
toJavaKeys
public static java.util.List<java.security.Key> toJavaKeys(java.util.List<JWK> jwkList)
Converts the specified list of JSON Web Keys (JWK) their standard Java class representation. AsymmetricRSAandEC keypairs are converted toPublicKeyandPrivateKey(if specified) objects.secret JWKsare converted toSecretKeyobjects. Key conversion exceptions are silently ignored.- Parameters:
jwkList- The JWK list. May benull.- Returns:
- The converted keys, empty set if none or
null.
-
-