Interface EncryptedID

  • All Superinterfaces:
    EncryptedElement

    @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 Detail

      • decrypt

        NameID decrypt​(Set<PrivateKey> privateKeys)
                throws 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:
        SAML2Exception - if it could not decrypt the ID properly.