Package com.nimbusds.jose.jwk
Class KeyConverter
- java.lang.Object
-
- com.nimbusds.jose.jwk.KeyConverter
-
public class KeyConverter extends Object
Key converter.
-
-
Constructor Summary
Constructors Constructor Description KeyConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Key>toJavaKeys(List<JWK> jwkList)Converts the specified list of JSON Web Keys (JWK) their standard Java class representation.
-
-
-
Constructor Detail
-
KeyConverter
public KeyConverter()
-
-
Method Detail
-
toJavaKeys
public static List<Key> toJavaKeys(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.
-
-