public abstract class AbstractEncryptedKeyResolver extends java.lang.Object implements EncryptedKeyResolver
EncryptedKeyResolver.| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<java.lang.String> |
recipients
Recipient attribute criteria against which to match.
|
| Constructor and Description |
|---|
AbstractEncryptedKeyResolver()
Constructor.
|
AbstractEncryptedKeyResolver(java.util.Set<java.lang.String> newRecipents)
Constructor.
|
AbstractEncryptedKeyResolver(java.lang.String recipient)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.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(java.lang.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 java.util.Collection<java.lang.String> recipients
public AbstractEncryptedKeyResolver()
public AbstractEncryptedKeyResolver(@Nullable
java.util.Set<java.lang.String> newRecipents)
newRecipents - set of recipientspublic AbstractEncryptedKeyResolver(@Nullable
java.lang.String recipient)
recipient - the recipient@Nonnull @NonnullElements @Unmodifiable @NotLive public java.util.Set<java.lang.String> getRecipients()
getRecipients in interface EncryptedKeyResolverprotected boolean matchRecipient(@Nullable
java.lang.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 evaluate