public class EncryptedAssertionImpl extends EncryptedElementImpl implements EncryptedAssertion
EncryptedAssertion
represents an assertion in
encrypted fashion, as defined by the XML Encryption Syntax and
Processing specification [XMLEnc]. The EncryptedAssertion contains
an EncryptedData
and zero or more
EncryptedKey
s.Modifier and Type | Field and Description |
---|---|
String |
elementName |
xmlString
Constructor and Description |
---|
EncryptedAssertionImpl(Element element)
Class constructor with
EncryptedAssertion in
Element format. |
EncryptedAssertionImpl(String xmlString)
Class constructor with
EncryptedAssertion in xml string
format. |
Modifier and Type | Method and Description |
---|---|
Assertion |
decrypt(Set<PrivateKey> privateKeys)
Decrypt the encrypted assertion.
|
toXMLString, toXMLString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toXMLString, toXMLString
public final String elementName
public EncryptedAssertionImpl(Element element) throws SAML2Exception
EncryptedAssertion
in
Element
format.SAML2Exception
public EncryptedAssertionImpl(String xmlString) throws SAML2Exception
EncryptedAssertion
in xml string
format.SAML2Exception
public Assertion decrypt(Set<PrivateKey> privateKeys) throws SAML2Exception
EncryptedAssertion
decrypt
in interface EncryptedAssertion
privateKeys
- Private keys of the recipient used to decrypt the secret key.SAML2Exception
- if it could not decrypt the assertion properly.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.