Modifier and Type | Field and Description |
---|---|
String |
elementName |
Constructor and Description |
---|
NewIDImpl(Element element)
Constructor to create the
NewID Object. |
NewIDImpl(String value)
Constructor to create the
NewID Object. |
Modifier and Type | Method and Description |
---|---|
NewEncryptedID |
encrypt(Key recipientPublicKey,
String dataEncAlgorithm,
int dataEncStrength,
String recipientEntityID)
Returns an
NewEncryptedID object. |
String |
getValue()
Returns the value of the
NewID URI. |
String |
toXMLString()
Returns a String representation of this Object.
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a String representation
|
public final String elementName
public NewIDImpl(Element element) throws SAML2Exception
NewID
Object.element
- Document Element of NewID
Object.SAML2Exception
- if NewID cannot be created.
public NewIDImpl(String value) throws SAML2Exception
NewID
Object.value
- of the NewID.
SAML2Exception
- if NewID cannot be created.
public String getValue()
NewID
URI.getValue
in interface NewID
NewID
URI.NewIDImpl(String)
public String toXMLString() throws SAML2Exception
toXMLString
in interface NewID
SAML2Exception
- if cannot convert to String.public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
toXMLString
in interface NewID
includeNSPrefix
- 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 cannot convert to String.public NewEncryptedID encrypt(Key recipientPublicKey, String dataEncAlgorithm, int dataEncStrength, String recipientEntityID) throws SAML2Exception
NewEncryptedID
object.encrypt
in interface NewID
recipientPublicKey
- Public key used to encrypt the data encryption
(secret) key, it is the public key of the
recipient of the XML document to be encrypted.dataEncAlgorithm
- Data encryption algorithm.dataEncStrength
- Data encryption strength.recipientEntityID
- Unique identifier of the recipient, it is used
as the index to the cached secret key so that
the key can be reused for the same recipient;
It can be null in which case the secret key will
be generated every time and will not be cached
and reused. Note that the generation of a secret
key is a relatively expensive operation.NewEncryptedID
objectSAML2Exception
- if error occurs during the encryption process.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.