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, getDocFromBytes
public 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 KeyResolverSpi
protected PublicKey engineResolvePublicKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
engineResolvePublicKey
in class KeyResolverSpi
KeyResolverException
protected X509Certificate engineResolveX509Certificate(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
engineResolveX509Certificate
in class KeyResolverSpi
KeyResolverException
protected SecretKey engineResolveSecretKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
engineResolveSecretKey
in class KeyResolverSpi
KeyResolverException
public PrivateKey engineResolvePrivateKey(Element element, String baseURI, StorageResolver storage, boolean secureValidation) throws KeyResolverException
engineResolvePrivateKey
in class KeyResolverSpi
KeyResolverException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.