Interface EncryptedID

All Superinterfaces:
EncryptedElement, XmlSerializable

@SupportedAll public interface EncryptedID extends EncryptedElement
The EncryptedID carries the content of an unencrypted identifier in encrypted fashion. It contains an EncryptedData and zero or more EncryptedKeys.
  • Method Details

    • decrypt

      NameID decrypt(Set<PrivateKey> privateKeys) throws com.sun.identity.saml2.common.SAML2Exception
      Decrypts the encrypted ID.
      Parameters:
      privateKeys - Private keys of the recipient used to decrypt the secret key
      Returns:
      a NameID that is decrypted from this object
      Throws:
      com.sun.identity.saml2.common.SAML2Exception - if it could not decrypt the ID properly.