Class NewEncryptedIDImpl
- java.lang.Object
-
- com.sun.identity.saml2.assertion.impl.EncryptedElementImpl
-
- com.sun.identity.saml2.protocol.impl.NewEncryptedIDImpl
-
- All Implemented Interfaces:
EncryptedElement,NewEncryptedID
public class NewEncryptedIDImpl extends EncryptedElementImpl implements NewEncryptedID
Java content class for NewEncryptedID element declaration.The following schema fragment specifies the expected content contained within this java content object.
<element name="NewEncryptedID" 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 NewEncryptedIDImpl(String xmlString)Constructor to createNewEncryptedIDObject.NewEncryptedIDImpl(Element element)Constructor to createNewEncryptedIDObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewIDdecrypt(Set<PrivateKey> privateKeys)Returns an instance ofNewIDobject.-
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
-
NewEncryptedIDImpl
public NewEncryptedIDImpl(Element element) throws SAML2Exception
Constructor to createNewEncryptedIDObject.- Parameters:
element- Document Element ofNewEncryptedIDobject.- Throws:
SAML2Exception- ifNewEncryptedIDcannot be created.
-
NewEncryptedIDImpl
public NewEncryptedIDImpl(String xmlString) throws SAML2Exception
Constructor to createNewEncryptedIDObject.- Parameters:
xmlString- XML Representation of theNewEncryptedIDobject.- Throws:
SAML2Exception- ifNewEncryptedIDcannot be created.
-
-
Method Detail
-
decrypt
public NewID decrypt(Set<PrivateKey> privateKeys) throws SAML2Exception
Description copied from interface:NewEncryptedIDReturns an instance ofNewIDobject.- Specified by:
decryptin interfaceNewEncryptedID- Parameters:
privateKeys- Private keys of the recipient used to decrypt the secret key.- Returns:
NewIDobject.- Throws:
SAML2Exception- if error occurs.
-
-