Interface AsymmetricJWK

    • Method Detail

      • toKeyPair

        KeyPair toKeyPair()
                   throws JOSEException
        Returns a Java key pair representation of this JWK.
        Returns:
        The Java key pair. The private key will be null if not specified.
        Throws:
        JOSEException - If conversion failed or is not supported.
      • matches

        boolean matches​(X509Certificate cert)
        Returns true if the public key material of this JWK matches the public subject key info of the specified X.509 certificate.
        Parameters:
        cert - The X.509 certificate. Must not be null.
        Returns:
        true if the public key material of this JWK matches the public subject key info of the specified X.509 certificate, else false.