public class SingleKeyResolver extends KeyResolverSpi
| Constructor and Description |
|---|
SingleKeyResolver(String keyName,
PrivateKey privateKey)
Constructor.
|
SingleKeyResolver(String keyName,
PublicKey publicKey)
Constructor.
|
SingleKeyResolver(String keyName,
SecretKey secretKey)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
engineCanResolve(Element element,
String baseURI,
StorageResolver storage)
This method returns whether the KeyResolverSpi is able to perform the requested action.
|
PrivateKey |
engineResolvePrivateKey(Element element,
String baseURI,
StorageResolver storage,
boolean secureValidation)
Method engineResolvePrivateKey
|
protected PublicKey |
engineResolvePublicKey(Element element,
String baseURI,
StorageResolver storage,
boolean secureValidation)
Method engineResolvePublicKey
|
protected SecretKey |
engineResolveSecretKey(Element element,
String baseURI,
StorageResolver storage,
boolean secureValidation)
Method engineResolveSecretKey
|
protected X509Certificate |
engineResolveX509Certificate(Element element,
String baseURI,
StorageResolver storage,
boolean secureValidation)
Method engineResolveCertificate
|
engineLookupAndResolvePrivateKey, engineLookupAndResolvePublicKey, engineLookupAndResolveSecretKey, engineLookupResolveX509Certificate, getDocFromBytespublic SingleKeyResolver(String keyName, PublicKey publicKey)
keyName - publicKey - public SingleKeyResolver(String keyName, PrivateKey privateKey)
keyName - privateKey - protected boolean engineCanResolve(Element element, String baseURI, StorageResolver storage)
engineCanResolve in class KeyResolverSpiprotected PublicKey engineResolvePublicKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
engineResolvePublicKey in class KeyResolverSpiKeyResolverExceptionprotected X509Certificate engineResolveX509Certificate(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
engineResolveX509Certificate in class KeyResolverSpiKeyResolverExceptionprotected SecretKey engineResolveSecretKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
engineResolveSecretKey in class KeyResolverSpiKeyResolverExceptionpublic PrivateKey engineResolvePrivateKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
engineResolvePrivateKey in class KeyResolverSpiKeyResolverExceptionCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.