Package com.sun.identity.saml2.assertion
Interface NameID
-
- All Superinterfaces:
NameIDType
,XmlSerializable
@SupportedAll public interface NameID extends NameIDType
TheNameID
is used in various SAML assertion constructs such asSubject
andSubjectConfirmation
elements, and in various protocol messages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EncryptedID
encrypt(com.sun.identity.saml2.key.EncryptionConfig encryptionConfig, String recipientEntityID)
Returns anEncryptedID
object.-
Methods inherited from interface com.sun.identity.saml2.assertion.NameIDType
getFormat, getNameQualifier, getSPNameQualifier, getSPProvidedID, getValue, isMutable, makeImmutable, setFormat, setNameQualifier, setSPNameQualifier, setSPProvidedID, setValue
-
Methods inherited from interface com.sun.identity.saml2.common.XmlSerializable
toDocumentFragment, toXMLString, toXMLString
-
-
-
-
Method Detail
-
encrypt
EncryptedID encrypt(com.sun.identity.saml2.key.EncryptionConfig encryptionConfig, String recipientEntityID) throws SAML2Exception
Returns anEncryptedID
object.- Parameters:
encryptionConfig
- 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.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.- Returns:
EncryptedID
object- Throws:
SAML2Exception
- if error occurs during the encryption process.
-
-