Class RetrievalMethodResolver
- java.lang.Object
-
- org.apache.xml.security.keys.keyresolver.KeyResolverSpi
-
- org.apache.xml.security.keys.keyresolver.implementations.RetrievalMethodResolver
-
public class RetrievalMethodResolver extends KeyResolverSpi
The RetrievalMethodResolver can retrieve public keys and certificates from other locations. The location is specified using the ds:RetrievalMethod element which points to the location. This includes the handling of raw (binary) X.509 certificate which are not encapsulated in an XML structure. If the retrieval process encounters an element which the RetrievalMethodResolver cannot handle itself, resolving of the extracted element is delegated back to the KeyResolver mechanism.- Author:
- $Author: raul $ modified by Dave Garcia
-
-
Field Summary
-
Fields inherited from class org.apache.xml.security.keys.keyresolver.KeyResolverSpi
globalResolver, properties, secureValidation
-
-
Constructor Summary
Constructors Constructor Description RetrievalMethodResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PublicKey
engineLookupAndResolvePublicKey(Element element, String baseURI, StorageResolver storage)
Method engineResolvePublicKeySecretKey
engineLookupAndResolveSecretKey(Element element, String baseURI, StorageResolver storage)
Method engineResolveSecretKeyX509Certificate
engineLookupResolveX509Certificate(Element element, String baseURI, StorageResolver storage)
Method engineResolveX509Certificate-
Methods inherited from class org.apache.xml.security.keys.keyresolver.KeyResolverSpi
engineCanResolve, engineGetProperty, engineLookupAndResolvePrivateKey, engineResolvePublicKey, engineResolveSecretKey, engineResolveX509Certificate, engineSetProperty, getDocFromBytes, setGlobalResolver, setSecureValidation, understandsProperty
-
-
-
-
Method Detail
-
engineLookupAndResolvePublicKey
public PublicKey engineLookupAndResolvePublicKey(Element element, String baseURI, StorageResolver storage)
Method engineResolvePublicKey- Overrides:
engineLookupAndResolvePublicKey
in classKeyResolverSpi
- Returns:
- resolved public key from the registered from the element.
-
engineLookupResolveX509Certificate
public X509Certificate engineLookupResolveX509Certificate(Element element, String baseURI, StorageResolver storage)
Method engineResolveX509Certificate- Overrides:
engineLookupResolveX509Certificate
in classKeyResolverSpi
- Returns:
- resolved X509Certificate key from the registered from the elements
-
engineLookupAndResolveSecretKey
public SecretKey engineLookupAndResolveSecretKey(Element element, String baseURI, StorageResolver storage)
Method engineResolveSecretKey- Overrides:
engineLookupAndResolveSecretKey
in classKeyResolverSpi
- Returns:
- resolved SecretKey key from the registered from the elements
-
-