com.sun.identity.saml2.assertion
インタフェース NameID

すべてのスーパーインタフェース:
NameIDType

public interface NameID
extends NameIDType

The NameID is used in various SAML assertion constructs such as Subject and SubjectConfirmation elements, and in various protocol messages.


メソッドの概要
 EncryptedID encrypt(Key recipientPublicKey, String dataEncAlgorithm, int dataEncStrength, String recipientEntityID)
          Returns an EncryptedID object.
 
インタフェース com.sun.identity.saml2.assertion.NameIDType から継承されたメソッド
getFormat, getNameQualifier, getSPNameQualifier, getSPProvidedID, getValue, isMutable, makeImmutable, setFormat, setNameQualifier, setSPNameQualifier, setSPProvidedID, setValue, toXMLString, toXMLString
 

メソッドの詳細

encrypt

EncryptedID encrypt(Key recipientPublicKey,
                    String dataEncAlgorithm,
                    int dataEncStrength,
                    String recipientEntityID)
                    throws SAML2Exception
Returns an EncryptedID object.

パラメータ:
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.
戻り値:
EncryptedID object
例外:
SAML2Exception - if error occurs during the encryption process.