org.opensaml.saml2.encryption
Class Decrypter

java.lang.Object
  extended by org.opensaml.xml.encryption.Decrypter
      extended by org.opensaml.saml2.encryption.Decrypter

public class Decrypter
extends org.opensaml.xml.encryption.Decrypter

Class which implements SAML2-specific options for EncryptedElementType objects.

For information on other parameters and options, and general XML Encryption issues, see Decrypter.


Constructor Summary
Decrypter(org.opensaml.xml.security.keyinfo.KeyInfoCredentialResolver newResolver, org.opensaml.xml.security.keyinfo.KeyInfoCredentialResolver newKEKResolver, org.opensaml.xml.encryption.EncryptedKeyResolver newEncKeyResolver)
          Constructor.
 
Method Summary
 Assertion decrypt(EncryptedAssertion encryptedAssertion)
          Decrypt the specified EncryptedAssertion.
 Attribute decrypt(EncryptedAttribute encryptedAttribute)
          Decrypt the specified EncryptedAttribute.
 SAMLObject decrypt(EncryptedID encryptedID)
          Decrypt the specified EncryptedID.
 NewID decrypt(NewEncryptedID newEncryptedID)
          Decrypt the specified NewEncryptedID.
 
Methods inherited from class org.opensaml.xml.encryption.Decrypter
checkAndMarshall, decryptData, decryptData, decryptDataToDOM, decryptDataToDOM, decryptDataToList, decryptDataToList, decryptKey, decryptKey, getEncryptedKeyResolver, getJCAProviderName, getKEKResolver, getKEKResolverCriteria, getKeyResolver, isRootInNewDocument, preProcessEncryptedKey, setEncryptedKeyResolver, setJCAProviderName, setKEKResolver, setKEKResolverCriteria, setKeyResolver, setKeyResolverCriteria, setKeyResolverCriteria, setRootInNewDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Decrypter

public Decrypter(org.opensaml.xml.security.keyinfo.KeyInfoCredentialResolver newResolver,
                 org.opensaml.xml.security.keyinfo.KeyInfoCredentialResolver newKEKResolver,
                 org.opensaml.xml.encryption.EncryptedKeyResolver newEncKeyResolver)
Constructor.

Parameters:
newResolver - resolver for data encryption keys.
newKEKResolver - resolver for key encryption keys.
newEncKeyResolver - resolver for EncryptedKey elements
Method Detail

decrypt

public Assertion decrypt(EncryptedAssertion encryptedAssertion)
                  throws org.opensaml.xml.encryption.DecryptionException
Decrypt the specified EncryptedAssertion.

Parameters:
encryptedAssertion - the EncryptedAssertion to decrypt
Returns:
an Assertion
Throws:
org.opensaml.xml.encryption.DecryptionException - thrown when decryption generates an error

decrypt

public Attribute decrypt(EncryptedAttribute encryptedAttribute)
                  throws org.opensaml.xml.encryption.DecryptionException
Decrypt the specified EncryptedAttribute.

Parameters:
encryptedAttribute - the EncryptedAttribute to decrypt
Returns:
an Attribute
Throws:
org.opensaml.xml.encryption.DecryptionException - thrown when decryption generates an error

decrypt

public SAMLObject decrypt(EncryptedID encryptedID)
                   throws org.opensaml.xml.encryption.DecryptionException
Decrypt the specified EncryptedID.

Note that an EncryptedID can contain a NameID, an Assertion or a BaseID. It is up to the caller to determine the type of the resulting SAMLObject.

Parameters:
encryptedID - the EncryptedID to decrypt
Returns:
an XMLObject
Throws:
org.opensaml.xml.encryption.DecryptionException - thrown when decryption generates an error

decrypt

public NewID decrypt(NewEncryptedID newEncryptedID)
              throws org.opensaml.xml.encryption.DecryptionException
Decrypt the specified NewEncryptedID.

Parameters:
newEncryptedID - the NewEncryptedID to decrypt
Returns:
a NewID
Throws:
org.opensaml.xml.encryption.DecryptionException - thrown when decryption generates an error


Copyright © 2006-2010 Internet2. All Rights Reserved.