Class KeyConverter


  • public class KeyConverter
    extends java.lang.Object
    Key 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KeyConverter

        public KeyConverter()
    • 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. Asymmetric RSA and EC key pairs are converted to PublicKey and PrivateKey (if specified) objects. secret JWKs are converted to SecretKey objects. Key conversion exceptions are silently ignored.
        Parameters:
        jwkList - The JWK list. May be null.
        Returns:
        The converted keys, empty set if none or null.