Class EncryptedIDImpl
- java.lang.Object
-
- com.sun.identity.saml2.assertion.impl.EncryptedElementImpl
-
- com.sun.identity.saml2.assertion.impl.EncryptedIDImpl
-
- All Implemented Interfaces:
EncryptedElement,EncryptedID
public class EncryptedIDImpl extends EncryptedElementImpl implements EncryptedID
Java content class for EncryptedID element declaration.The following schema fragment specifies the expected content contained within this java content object.
<element name="EncryptedID" type="{urn:oasis:names:tc:SAML:2.0:assertion}EncryptedElementType"/>
-
-
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 EncryptedIDImpl(String xmlString)Class constructor withEncryptedIDin xml string format.EncryptedIDImpl(Element element)Class constructor withEncryptedIDinElementformat.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NameIDdecrypt(Set<PrivateKey> privateKeys)Decrypts the encrypted ID.-
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
-
EncryptedIDImpl
public EncryptedIDImpl(Element element) throws SAML2Exception
Class constructor withEncryptedIDinElementformat.- Throws:
SAML2Exception
-
EncryptedIDImpl
public EncryptedIDImpl(String xmlString) throws SAML2Exception
Class constructor withEncryptedIDin xml string format.- Throws:
SAML2Exception
-
-
Method Detail
-
decrypt
public NameID decrypt(Set<PrivateKey> privateKeys) throws SAML2Exception
Description copied from interface:EncryptedIDDecrypts the encrypted ID.- Specified by:
decryptin interfaceEncryptedID- Parameters:
privateKeys- Private keys of the recipient used to decrypt the secret key- Returns:
- a
NameIDthat is decrypted from this object - Throws:
SAML2Exception- if it could not decrypt the ID properly.
-
-