|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.xml.encryption.Decrypter
org.opensaml.saml2.encryption.Decrypter
public class Decrypter
Class which implements SAML2-specific options for EncryptedElementType objects.
For information on other parameters and options, and general XML Encryption issues,
see Decrypter.
| Field Summary | |
|---|---|
private org.slf4j.Logger |
log
Class logger. |
| Constructor Summary | |
|---|---|
Decrypter(KeyInfoCredentialResolver newResolver,
KeyInfoCredentialResolver newKEKResolver,
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. |
private SAMLObject |
decryptData(EncryptedElementType encElement)
Decrypt the specified instance of EncryptedElementType, and return it as an instance of the specified QName. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final org.slf4j.Logger log
| Constructor Detail |
|---|
public Decrypter(KeyInfoCredentialResolver newResolver,
KeyInfoCredentialResolver newKEKResolver,
EncryptedKeyResolver newEncKeyResolver)
newResolver - resolver for data encryption keys.newKEKResolver - resolver for key encryption keys.newEncKeyResolver - resolver for EncryptedKey elements| Method Detail |
|---|
public Assertion decrypt(EncryptedAssertion encryptedAssertion)
throws DecryptionException
encryptedAssertion - the EncryptedAssertion to decrypt
DecryptionException - thrown when decryption generates an error
public Attribute decrypt(EncryptedAttribute encryptedAttribute)
throws DecryptionException
encryptedAttribute - the EncryptedAttribute to decrypt
DecryptionException - thrown when decryption generates an error
public SAMLObject decrypt(EncryptedID encryptedID)
throws DecryptionException
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.
encryptedID - the EncryptedID to decrypt
DecryptionException - thrown when decryption generates an error
public NewID decrypt(NewEncryptedID newEncryptedID)
throws DecryptionException
newEncryptedID - the NewEncryptedID to decrypt
DecryptionException - thrown when decryption generates an error
private SAMLObject decryptData(EncryptedElementType encElement)
throws DecryptionException
encElement - the EncryptedElementType to decrypt
DecryptionException - thrown when decryption generates an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||