public abstract class KeyResolverSpi extends Object
<KeyResolver URI="http://www.w3.org/2000/09/xmldsig#KeyValue" JAVACLASS="MyPackage.MyKeyValueImpl"//gt;Extensions of this class must be thread-safe.
Constructor and Description |
---|
KeyResolverSpi() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
engineCanResolve(Element element,
String baseURI,
StorageResolver storage)
This method returns whether the KeyResolverSpi is able to perform the requested action.
|
PrivateKey |
engineLookupAndResolvePrivateKey(Element element,
String baseURI,
StorageResolver storage,
boolean secureValidation)
Method engineLookupAndResolvePrivateKey
|
PublicKey |
engineLookupAndResolvePublicKey(Element element,
String baseURI,
StorageResolver storage,
boolean secureValidation)
Method engineLookupAndResolvePublicKey
|
SecretKey |
engineLookupAndResolveSecretKey(Element element,
String baseURI,
StorageResolver storage,
boolean secureValidation)
Method engineLookupAndResolveSecretKey
|
X509Certificate |
engineLookupResolveX509Certificate(Element element,
String baseURI,
StorageResolver storage,
boolean secureValidation)
Method engineLookupResolveX509Certificate
|
protected abstract PrivateKey |
engineResolvePrivateKey(Element element,
String baseURI,
StorageResolver storage,
boolean secureValidation)
Method engineResolvePrivateKey
|
protected abstract PublicKey |
engineResolvePublicKey(Element element,
String baseURI,
StorageResolver storage,
boolean secureValidation)
Method engineResolvePublicKey
|
protected abstract SecretKey |
engineResolveSecretKey(Element element,
String baseURI,
StorageResolver storage,
boolean secureValidation)
Method engineResolveSecretKey
|
protected abstract X509Certificate |
engineResolveX509Certificate(Element element,
String baseURI,
StorageResolver storage,
boolean secureValidation)
Method engineResolveCertificate
|
protected static Element |
getDocFromBytes(byte[] bytes,
boolean secureValidation)
Parses a byte array and returns the parsed Element.
|
protected abstract boolean engineCanResolve(Element element, String baseURI, StorageResolver storage)
element
- baseURI
- storage
- protected abstract PublicKey engineResolvePublicKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element
- baseURI
- storage
- secureValidation
- KeyResolverException
public PublicKey engineLookupAndResolvePublicKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element
- baseURI
- storage
- secureValidation
- KeyResolverException
protected abstract X509Certificate engineResolveX509Certificate(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element
- baseURI
- storage
- secureValidation
- KeyResolverException
public X509Certificate engineLookupResolveX509Certificate(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element
- baseURI
- storage
- secureValidation
- KeyResolverException
protected abstract SecretKey engineResolveSecretKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element
- baseURI
- storage
- secureValidation
- KeyResolverException
public SecretKey engineLookupAndResolveSecretKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element
- baseURI
- storage
- secureValidation
- KeyResolverException
protected abstract PrivateKey engineResolvePrivateKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element
- baseURI
- storage
- secureValidation
- KeyResolverException
public PrivateKey engineLookupAndResolvePrivateKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element
- baseURI
- storage
- secureValidation
- KeyResolverException
protected static Element getDocFromBytes(byte[] bytes, boolean secureValidation) throws KeyResolverException
bytes
- KeyResolverException
- if something goes wrongCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.