Class X509DigestResolver


  • public class X509DigestResolver
    extends KeyResolverSpi
    KeyResolverSpi implementation which resolves public keys and X.509 certificates from a dsig11:X509Digest element.
    • Field Detail

      • LOG

        private static final java.lang.System.Logger LOG
    • Constructor Detail

      • X509DigestResolver

        public X509DigestResolver()
    • Method Detail

      • engineCanResolve

        protected boolean engineCanResolve​(org.w3c.dom.Element element,
                                           java.lang.String baseURI,
                                           StorageResolver storage)
        This method returns whether the KeyResolverSpi is able to perform the requested action.
        Specified by:
        engineCanResolve in class KeyResolverSpi
        Returns:
        whether the KeyResolverSpi is able to perform the requested action.
      • resolveCertificate

        private java.security.cert.X509Certificate resolveCertificate​(org.w3c.dom.Element element,
                                                                      java.lang.String baseURI,
                                                                      StorageResolver storage)
                                                               throws XMLSecurityException
        Resolves from the storage resolver the actual certificate represented by the digest.
        Parameters:
        element -
        baseURI -
        storage -
        Returns:
        the certificate represented by the digest.
        Throws:
        XMLSecurityException
      • engineResolvePrivateKey

        protected java.security.PrivateKey engineResolvePrivateKey​(org.w3c.dom.Element element,
                                                                   java.lang.String baseURI,
                                                                   StorageResolver storage,
                                                                   boolean secureValidation)
        Method engineResolvePrivateKey
        Specified by:
        engineResolvePrivateKey in class KeyResolverSpi
        Returns:
        resolved PrivateKey key from the registered from the elements