public class EncryptedAttributeImpl extends Object implements EncryptedAttribute
EncryptedAttribute
.
The EncryptedAttribute
element represents a SAML attribute
in encrypted fashion. It's of type EncryptedElementType
.
<element name="EncryptedAttribute" type="{urn:oasis:names:tc:SAML:2.0:assertion}EncryptedElementType"/>
Constructor and Description |
---|
EncryptedAttributeImpl(Element element)
Class constructor with
EncryptedAttribute in
Element format. |
EncryptedAttributeImpl(String xmlString)
Class constructor with
EncryptedAttribute in xml string
format. |
Modifier and Type | Method and Description |
---|---|
Attribute |
decrypt(Set<PrivateKey> privateKeys)
Returns an instance of
Attribute object. |
String |
toXMLString()
Returns a String representation of the element.
|
String |
toXMLString(boolean includeNS,
boolean declareNS)
Returns a String representation of the element.
|
public EncryptedAttributeImpl(Element element) throws SAML2Exception
EncryptedAttribute
in
Element
format.SAML2Exception
public EncryptedAttributeImpl(String xmlString) throws SAML2Exception
EncryptedAttribute
in xml string
format.SAML2Exception
public Attribute decrypt(Set<PrivateKey> privateKeys) throws SAML2Exception
EncryptedAttribute
Attribute
object.decrypt
in interface EncryptedAttribute
privateKeys
- Private keys of the recipient used to decrypt the secret key.Attribute
object.SAML2Exception
- if error occurs.public String toXMLString() throws SAML2Exception
toXMLString
in interface EncryptedElement
SAML2Exception
- if the object does not conform to the schema.public String toXMLString(boolean includeNS, boolean declareNS) throws SAML2Exception
toXMLString
in interface EncryptedElement
includeNS
- Determines whether or not the namespace qualifier is
prepended to the Element when converteddeclareNS
- Determines whether or not the namespace is declared
within the Element.SAML2Exception
- if the object does not conform to the schema.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.