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 - KeyResolverExceptionpublic PublicKey engineLookupAndResolvePublicKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element - baseURI - storage - secureValidation - KeyResolverExceptionprotected abstract X509Certificate engineResolveX509Certificate(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element - baseURI - storage - secureValidation - KeyResolverExceptionpublic X509Certificate engineLookupResolveX509Certificate(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element - baseURI - storage - secureValidation - KeyResolverExceptionprotected abstract SecretKey engineResolveSecretKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element - baseURI - storage - secureValidation - KeyResolverExceptionpublic SecretKey engineLookupAndResolveSecretKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element - baseURI - storage - secureValidation - KeyResolverExceptionprotected abstract PrivateKey engineResolvePrivateKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element - baseURI - storage - secureValidation - KeyResolverExceptionpublic PrivateKey engineLookupAndResolvePrivateKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
element - baseURI - storage - secureValidation - KeyResolverExceptionprotected static Element getDocFromBytes(byte[] bytes, boolean secureValidation) throws KeyResolverException
bytes - KeyResolverException - if something goes wrongCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.