public class EncryptedKeyResolver extends KeyResolverSpi
EncryptedKeyResolver is not a generic resolver. It can
only be for specific instantiations, as the key being unwrapped will
always be of a particular type and will always have been wrapped by
another key which needs to be recursively resolved.
The EncryptedKeyResolver can therefore only be instantiated
with an algorithm. It can also be instantiated with a key (the KEK) or
will search the static KeyResolvers to find the appropriate key.globalResolver, properties, secureValidation| Constructor and Description |
|---|
EncryptedKeyResolver(String algorithm)
Constructor for use when a KEK needs to be derived from a KeyInfo
list
|
EncryptedKeyResolver(String algorithm,
Key kek)
Constructor used for when a KEK has been set
|
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
engineLookupAndResolvePublicKey(Element element,
String baseURI,
StorageResolver storage)
Method engineLookupAndResolvePublicKey
|
SecretKey |
engineLookupAndResolveSecretKey(Element element,
String baseURI,
StorageResolver storage)
Method engineLookupAndResolveSecretKey
|
X509Certificate |
engineLookupResolveX509Certificate(Element element,
String baseURI,
StorageResolver storage)
Method engineLookupResolveX509Certificate
|
void |
registerInternalKeyResolver(KeyResolverSpi realKeyResolver)
This method is used to add a custom
KeyResolverSpi to help
resolve the KEK. |
engineCanResolve, engineGetProperty, engineLookupAndResolvePrivateKey, engineResolvePublicKey, engineResolveSecretKey, engineResolveX509Certificate, engineSetProperty, getDocFromBytes, setGlobalResolver, setSecureValidation, understandsPropertypublic EncryptedKeyResolver(String algorithm)
algorithm - public void registerInternalKeyResolver(KeyResolverSpi realKeyResolver)
KeyResolverSpi to help
resolve the KEK.realKeyResolver - public PublicKey engineLookupAndResolvePublicKey(Element element, String baseURI, StorageResolver storage)
KeyResolverSpiengineLookupAndResolvePublicKey in class KeyResolverSpipublic X509Certificate engineLookupResolveX509Certificate(Element element, String baseURI, StorageResolver storage)
KeyResolverSpiengineLookupResolveX509Certificate in class KeyResolverSpipublic SecretKey engineLookupAndResolveSecretKey(Element element, String baseURI, StorageResolver storage)
KeyResolverSpiengineLookupAndResolveSecretKey in class KeyResolverSpiCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.