APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.security.keys.keyresolver.implementations

public Class KeyInfoReferenceResolver

extends KeyResolverSpi
Class Inheritance
Imports
java.io.IOException, java.security.PrivateKey, .PublicKey, java.security.cert.X509Certificate, javax.crypto.SecretKey, javax.xml.namespace.QName, javax.xml.parsers.ParserConfigurationException, com.sun.org.apache.xml.internal.security.c14n.CanonicalizationException, com.sun.org.apache.xml.internal.security.exceptions.XMLSecurityException, com.sun.org.apache.xml.internal.security.keys.KeyInfo, com.sun.org.apache.xml.internal.security.keys.content.KeyInfoReference, com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverException, .KeyResolverSpi, com.sun.org.apache.xml.internal.security.keys.storage.StorageResolver, com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput, com.sun.org.apache.xml.internal.security.utils.Constants, .XMLUtils, com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolver, .ResourceResolverContext, org.w3c.dom.Attr, .Element, org.xml.sax.SAXException

KeyResolverSpi implementation which resolves public keys, private keys, secret keys, and X.509 certificates from a dsig11:KeyInfoReference element.

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected boolean
engineCanResolve(Element element, String baseURI, StorageResolver storage)

Implements abstract com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi.engineCanResolve.

This method returns whether the KeyResolverSpi is able to perform the requested action.

public PrivateKey
engineResolvePrivateKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation)

Implements abstract com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi.engineResolvePrivateKey.

Method engineResolvePrivateKey

protected PublicKey
engineResolvePublicKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation)

Implements abstract com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi.engineResolvePublicKey.

Method engineResolvePublicKey

protected SecretKey
engineResolveSecretKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation)

Implements abstract com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi.engineResolveSecretKey.

Method engineResolveSecretKey

protected X509Certificate
engineResolveX509Certificate(Element element, String baseURI, StorageResolver storage, boolean secureValidation)

Implements abstract com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi.engineResolveX509Certificate.

Method engineResolveCertificate

private Element

Returns:

the Element effectively represented by the XML signature input source.
obtainReferenceElement
(XMLSignatureInput resource, boolean secureValidation)

Resolve the Element effectively represented by the XML signature input source.

private XMLSignatureInput

Returns:

the XML signature input represented by the specified URI.
resolveInput
(Attr uri, String baseURI, boolean secureValidation)

Resolve the XML signature input represented by the specified URI.

private KeyInfo

Returns:

the KeyInfo which is referred to by this KeyInfoReference, or null if can not be resolved
resolveReferentKeyInfo
(Element element, String baseURI, StorageResolver storage, boolean secureValidation)

Resolve the KeyInfoReference Element's URI attribute into a KeyInfo instance.

private void
validateReference(Element referentElement, boolean secureValidation)

Validate the Element referred to by the KeyInfoReference.

Inherited from com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi:
engineLookupAndResolvePrivateKeyengineLookupAndResolvePublicKeyengineLookupAndResolveSecretKeyengineLookupResolveX509CertificategetDocFromBytes

Field Detail

LOGback to summary
private static final Logger LOG

Constructor Detail

KeyInfoReferenceResolverback to summary
public KeyInfoReferenceResolver()

Method Detail

engineCanResolveback to summary
protected boolean engineCanResolve(Element element, String baseURI, StorageResolver storage)

Implements abstract com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi.engineCanResolve.

Doc from com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi.engineCanResolve.

This method returns whether the KeyResolverSpi is able to perform the requested action.

Annotations
@Override
engineResolvePrivateKeyback to summary
public PrivateKey engineResolvePrivateKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException

Implements abstract com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi.engineResolvePrivateKey.

Doc from com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi.engineResolvePrivateKey.

Method engineResolvePrivateKey

Annotations
@Override
engineResolvePublicKeyback to summary
protected PublicKey engineResolvePublicKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException

Implements abstract com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi.engineResolvePublicKey.

Doc from com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi.engineResolvePublicKey.

Method engineResolvePublicKey

Annotations
@Override
engineResolveSecretKeyback to summary
protected SecretKey engineResolveSecretKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException

Implements abstract com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi.engineResolveSecretKey.

Doc from com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi.engineResolveSecretKey.

Method engineResolveSecretKey

Annotations
@Override
engineResolveX509Certificateback to summary
protected X509Certificate engineResolveX509Certificate(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException

Implements abstract com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi.engineResolveX509Certificate.

Doc from com.sun.org.apache.xml.internal.security.keys.keyresolver.KeyResolverSpi.engineResolveX509Certificate.

Method engineResolveCertificate

Annotations
@Override
obtainReferenceElementback to summary
private Element obtainReferenceElement(XMLSignatureInput resource, boolean secureValidation) throws CanonicalizationException, ParserConfigurationException, IOException, SAXException, KeyResolverException

Resolve the Element effectively represented by the XML signature input source.

Returns:Element

the Element effectively represented by the XML signature input source.

resolveInputback to summary
private XMLSignatureInput resolveInput(Attr uri, String baseURI, boolean secureValidation) throws XMLSecurityException

Resolve the XML signature input represented by the specified URI.

Returns:XMLSignatureInput

the XML signature input represented by the specified URI.

resolveReferentKeyInfoback to summary
private KeyInfo resolveReferentKeyInfo(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws XMLSecurityException

Resolve the KeyInfoReference Element's URI attribute into a KeyInfo instance.

Returns:KeyInfo

the KeyInfo which is referred to by this KeyInfoReference, or null if can not be resolved

validateReferenceback to summary
private void validateReference(Element referentElement, boolean secureValidation) throws XMLSecurityException

Validate the Element referred to by the KeyInfoReference.