org.apache.xml.security.keys.keyresolver.implementations
Class X509CertificateResolver

java.lang.Object
  extended byorg.apache.xml.security.keys.keyresolver.KeyResolverSpi
      extended byorg.apache.xml.security.keys.keyresolver.implementations.X509CertificateResolver

public class X509CertificateResolver
extends KeyResolverSpi

Resolves Certificates which are directly contained inside a ds:X509Certificate Element.

Author:
$Author: raul $

Field Summary
 
Fields inherited from class org.apache.xml.security.keys.keyresolver.KeyResolverSpi
_properties, globalResolver
 
Constructor Summary
X509CertificateResolver()
           
 
Method Summary
 java.security.PublicKey engineLookupAndResolvePublicKey(org.w3c.dom.Element element, java.lang.String BaseURI, StorageResolver storage)
          Method engineResolvePublicKey
 javax.crypto.SecretKey engineLookupAndResolveSecretKey(org.w3c.dom.Element element, java.lang.String BaseURI, StorageResolver storage)
          Method engineResolveSecretKey
 java.security.cert.X509Certificate engineLookupResolveX509Certificate(org.w3c.dom.Element element, java.lang.String BaseURI, StorageResolver storage)
          Method engineResolveX509Certificate
 
Methods inherited from class org.apache.xml.security.keys.keyresolver.KeyResolverSpi
engineCanResolve, engineGetProperty, engineLookupAndResolvePrivateKey, engineResolvePublicKey, engineResolveSecretKey, engineResolveX509Certificate, engineSetProperty, setGlobalResolver, understandsProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509CertificateResolver

public X509CertificateResolver()
Method Detail

engineLookupAndResolvePublicKey

public java.security.PublicKey engineLookupAndResolvePublicKey(org.w3c.dom.Element element,
                                                               java.lang.String BaseURI,
                                                               StorageResolver storage)
                                                        throws KeyResolverException
Method engineResolvePublicKey

Overrides:
engineLookupAndResolvePublicKey in class KeyResolverSpi
Parameters:
element -
BaseURI -
storage -
Returns:
resolved public key from the registered from the element.
Throws:
KeyResolverException

engineLookupResolveX509Certificate

public java.security.cert.X509Certificate engineLookupResolveX509Certificate(org.w3c.dom.Element element,
                                                                             java.lang.String BaseURI,
                                                                             StorageResolver storage)
                                                                      throws KeyResolverException
Method engineResolveX509Certificate

Overrides:
engineLookupResolveX509Certificate in class KeyResolverSpi
Parameters:
element -
BaseURI -
storage -
Returns:
resolved X509Certificate key from the registered from the elements
Throws:
KeyResolverException

engineLookupAndResolveSecretKey

public javax.crypto.SecretKey engineLookupAndResolveSecretKey(org.w3c.dom.Element element,
                                                              java.lang.String BaseURI,
                                                              StorageResolver storage)
Method engineResolveSecretKey

Overrides:
engineLookupAndResolveSecretKey in class KeyResolverSpi
Parameters:
element -
BaseURI -
storage -
Returns:
resolved SecretKey key from the registered from the elements