org.opensaml.xml.encryption
Class AbstractEncryptedKeyResolver

java.lang.Object
  extended by org.opensaml.xml.encryption.AbstractEncryptedKeyResolver
All Implemented Interfaces:
EncryptedKeyResolver
Direct Known Subclasses:
ChainingEncryptedKeyResolver, InlineEncryptedKeyResolver, SimpleRetrievalMethodEncryptedKeyResolver

public abstract class AbstractEncryptedKeyResolver
extends java.lang.Object
implements EncryptedKeyResolver

Abstract class implementation for EncryptedKeyResolver.


Constructor Summary
AbstractEncryptedKeyResolver()
          Constructor.
 
Method Summary
 java.util.List<java.lang.String> getRecipients()
          Get the list 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.xml.encryption.EncryptedKeyResolver
resolve
 

Constructor Detail

AbstractEncryptedKeyResolver

public AbstractEncryptedKeyResolver()
Constructor.

Method Detail

getRecipients

public java.util.List<java.lang.String> getRecipients()
Get the list of recipient criteria used by this resolver, and against which a candidate EncryptedKey's Recipient attribute is evaluated.

Specified by:
getRecipients in interface EncryptedKeyResolver
Returns:
the list of recipient criteria

matchRecipient

protected boolean matchRecipient(java.lang.String recipient)
Evaluate whether the specified recipient attribute value matches this resolver's recipient criteria.

Parameters:
recipient - the recipient value to evaluate
Returns:
true if the recipient value matches the resolver's criteria, false otherwise

matchCarriedKeyName

protected boolean matchCarriedKeyName(EncryptedData encryptedData,
                                      EncryptedKey encryptedKey)
Evaluate whether an EncryptedKey's CarriedKeyName matches one of the KeyName values from the EncryptedData context.

Parameters:
encryptedData - the EncryptedData context
encryptedKey - the candidate Encryptedkey to evaluate
Returns:
true if the encrypted key's carried key name matches that of the encrytped data, false otherwise

matchDataReference

protected boolean matchDataReference(EncryptedData encryptedData,
                                     EncryptedKey encryptedKey)
Evaluate whether any of the EncryptedKey's DataReferences refer to the EncryptedData context.

Parameters:
encryptedData - the EncryptedData context
encryptedKey - the candidate Encryptedkey to evaluate
Returns:
true if any of the encrypted key's data references refer to the encrypted data context, false otherwise


Copyright © 2006-2012 Internet2. All Rights Reserved.