public abstract class AbstractEncryptedKeyResolver extends Object implements EncryptedKeyResolver
EncryptedKeyResolver.| Modifier and Type | Field and Description |
|---|---|
private Collection<String> |
recipients
Recipient attribute criteria against which to match.
|
| Constructor and Description |
|---|
AbstractEncryptedKeyResolver()
Constructor.
|
AbstractEncryptedKeyResolver(Set<String> newRecipents)
Constructor.
|
AbstractEncryptedKeyResolver(String recipient)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getRecipients()
Get the set of recipient criteria used by this resolver, and against which a candidate
EncryptedKey's Recipient attribute is evaluated.
|
protected boolean |
matchCarriedKeyName(EncryptedData encryptedData,
EncryptedKey encryptedKey)
Evaluate whether an EncryptedKey's CarriedKeyName matches one of the KeyName values
from the EncryptedData context.
|
protected boolean |
matchDataReference(EncryptedData encryptedData,
EncryptedKey encryptedKey)
Evaluate whether any of the EncryptedKey's DataReferences refer to the EncryptedData
context.
|
protected boolean |
matchRecipient(String recipient)
Evaluate whether the specified recipient attribute value matches this resolver's
recipient criteria.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveprivate final Collection<String> recipients
public AbstractEncryptedKeyResolver()
public AbstractEncryptedKeyResolver(@Nullable Set<String> newRecipents)
newRecipents - set of recipients@Nonnull @NonnullElements @Unmodifiable @NotLive public Set<String> getRecipients()
getRecipients in interface EncryptedKeyResolverprotected boolean matchRecipient(@Nullable String recipient)
recipient - the recipient value to evaluateprotected boolean matchCarriedKeyName(@Nonnull EncryptedData encryptedData, @Nonnull EncryptedKey encryptedKey)
encryptedData - the EncryptedData contextencryptedKey - the candidate Encryptedkey to evaluateprotected boolean matchDataReference(@Nonnull EncryptedData encryptedData, @Nonnull EncryptedKey encryptedKey)
encryptedData - the EncryptedData contextencryptedKey - the candidate Encryptedkey to evaluateCopyright © 1999–2014. All rights reserved.