Class EncryptedAssertionImpl
- java.lang.Object
-
- com.sun.identity.saml2.assertion.impl.EncryptedElementImpl
-
- com.sun.identity.saml2.assertion.impl.EncryptedAssertionImpl
-
- All Implemented Interfaces:
EncryptedAssertion,EncryptedElement
public class EncryptedAssertionImpl extends EncryptedElementImpl implements EncryptedAssertion
TheEncryptedAssertionrepresents an assertion in encrypted fashion, as defined by the XML Encryption Syntax and Processing specification [XMLEnc]. The EncryptedAssertion contains anEncryptedDataand zero or moreEncryptedKeys.
-
-
Field Summary
Fields Modifier and Type Field Description StringelementName-
Fields inherited from class com.sun.identity.saml2.assertion.impl.EncryptedElementImpl
xmlString
-
-
Constructor Summary
Constructors Constructor Description EncryptedAssertionImpl(String xmlString)Class constructor withEncryptedAssertionin xml string format.EncryptedAssertionImpl(Element element)Class constructor withEncryptedAssertioninElementformat.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Assertiondecrypt(Set<PrivateKey> privateKeys)Decrypt the encrypted assertion.-
Methods inherited from class com.sun.identity.saml2.assertion.impl.EncryptedElementImpl
toXMLString, toXMLString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.identity.saml2.assertion.EncryptedElement
toXMLString, toXMLString
-
-
-
-
Field Detail
-
elementName
public final String elementName
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EncryptedAssertionImpl
public EncryptedAssertionImpl(Element element) throws SAML2Exception
Class constructor withEncryptedAssertioninElementformat.- Throws:
SAML2Exception
-
EncryptedAssertionImpl
public EncryptedAssertionImpl(String xmlString) throws SAML2Exception
Class constructor withEncryptedAssertionin xml string format.- Throws:
SAML2Exception
-
-
Method Detail
-
decrypt
public Assertion decrypt(Set<PrivateKey> privateKeys) throws SAML2Exception
Description copied from interface:EncryptedAssertionDecrypt the encrypted assertion.- Specified by:
decryptin interfaceEncryptedAssertion- Parameters:
privateKeys- Private keys of the recipient used to decrypt the secret key.- Returns:
- an assertion that is decrypted from this object
- Throws:
SAML2Exception- if it could not decrypt the assertion properly.
-
-