org.opensaml.xml.encryption
Class SimpleRetrievalMethodEncryptedKeyResolver

java.lang.Object
  extended by org.opensaml.xml.encryption.AbstractEncryptedKeyResolver
      extended by org.opensaml.xml.encryption.SimpleRetrievalMethodEncryptedKeyResolver
All Implemented Interfaces:
EncryptedKeyResolver

public class SimpleRetrievalMethodEncryptedKeyResolver
extends AbstractEncryptedKeyResolver

Implementation of EncryptedKeyResolver which finds EncryptedKey elements by dereferencing RetrievalMethod children of the KeyInfo of the EncryptedData context. The RetrievalMethod must have a Type attribute with the value of EncryptionConstants.TYPE_ENCRYPTED_KEY. The URI attribute value must be a same-document fragment identifier (via ID attribute). Processing of transforms children of RetrievalMethod is not supported by this implementation.


Constructor Summary
SimpleRetrievalMethodEncryptedKeyResolver()
           
 
Method Summary
protected  EncryptedKey dereferenceURI(RetrievalMethod rm)
          Dereference the URI attribute of the specified retrieval method into an EncryptedKey.
 Iterable<EncryptedKey> resolve(EncryptedData encryptedData)
          Resolve the EncryptedKey elements containing the data encryption key used to encrypt the specified EncryptedData element.
 
Methods inherited from class org.opensaml.xml.encryption.AbstractEncryptedKeyResolver
getRecipients, matchCarriedKeyName, matchDataReference, matchRecipient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRetrievalMethodEncryptedKeyResolver

public SimpleRetrievalMethodEncryptedKeyResolver()
Method Detail

resolve

public Iterable<EncryptedKey> resolve(EncryptedData encryptedData)
Resolve the EncryptedKey elements containing the data encryption key used to encrypt the specified EncryptedData element.

Parameters:
encryptedData - the EncryptedData element context in which to resolve
Returns:
an iterable of EncryptedKey elements

dereferenceURI

protected EncryptedKey dereferenceURI(RetrievalMethod rm)
Dereference the URI attribute of the specified retrieval method into an EncryptedKey.

Parameters:
rm - the RetrievalMethod to process
Returns:
the dereferenced EncryptedKey


Copyright © 2006-2011 Internet2. All Rights Reserved.