# Uses of Interface
org.opensaml.saml.saml2.core.EncryptedElementType

Packages that use EncryptedElementType
Package
Description
org.opensaml.saml.saml2.core
Interfaces for SAML 2.0 core and protocol interfaces.
org.opensaml.saml.saml2.core.impl
Implementations of SAML 2.0 core specification types and elements.
org.opensaml.saml.saml2.encryption
Classes for encrypting and decrypting SAML.
org.opensaml.saml.saml2.profile.impl
Implementations of SAML 2.0 profile behavior.

## Uses of EncryptedElementType in org.opensaml.saml.saml2.core

Subinterfaces of EncryptedElementType in org.opensaml.saml.saml2.core
Modifier and Type
Interface
Description
`interface`
`EncryptedAssertion`
SAML 2.0 Core EncryptedAssertion.
`interface`
`EncryptedAttribute`
SAML 2.0 Core EncryptedAttribute.
`interface`
`EncryptedID`
SAML 2.0 Core EncryptedID.
`interface`
`NewEncryptedID`
SAML 2.0 Core NewEncryptedID.

## Uses of EncryptedElementType in org.opensaml.saml.saml2.core.impl

Classes in org.opensaml.saml.saml2.core.impl that implement EncryptedElementType
Modifier and Type
Class
Description
`class`
`EncryptedAssertionImpl`
A concrete implementation of `EncryptedAssertion`.
`class`
`EncryptedAttributeImpl`
A concrete implementation of `EncryptedAttribute`.
`class`
`EncryptedElementTypeImpl`
A concrete implementation of `EncryptedElementType`.
`class`
`EncryptedIDImpl`
A concrete implementation of `EncryptedID`.
`class`
`NewEncryptedIDImpl`
A concrete implementation of `NewEncryptedID`.

## Uses of EncryptedElementType in org.opensaml.saml.saml2.encryption

Methods in org.opensaml.saml.saml2.encryption that return EncryptedElementType
Modifier and Type
Method
Description
`private EncryptedElementType`
Encrypter.`encrypt(XMLObject xmlObject, QName encElementName)`
Encrypt the specified XMLObject, and return it as an instance of the specified QName, which should be one of the types derived from `EncryptedElementType`.
`protected EncryptedElementType`
Encrypter.`placeKeysAsPeers(EncryptedElementType encElement, EncryptedData encData, List<EncryptedKey> encKeys)`
Store the specified EncryptedData and EncryptedKey(s) in the specified instance of EncryptedElementType as peer elements, following SAML 2 Errata E43 guidelines for forward and back referencing between the EncryptedData and EncryptedKey(s).
`protected EncryptedElementType`
Encrypter.`placeKeysInline(EncryptedElementType encElement, EncryptedData encData, List<EncryptedKey> encKeys)`
Place the EncryptedKey elements inside the KeyInfo element within the EncryptedData element.
`protected EncryptedElementType`
Encrypter.`processElements(EncryptedElementType encElement, EncryptedData encData, List<EncryptedKey> encKeys)`
Handle post-processing of generated EncryptedData and EncryptedKey(s) and storage in the appropriate EncryptedElementType instance.
Methods in org.opensaml.saml.saml2.encryption with parameters of type EncryptedElementType
Modifier and Type
Method
Description
`private SAMLObject`
Decrypter.`decryptData(EncryptedElementType encElement)`
Decrypt the specified instance of EncryptedElementType, and return it as an instance of the specified QName.
`protected EncryptedElementType`
Encrypter.`placeKeysAsPeers(EncryptedElementType encElement, EncryptedData encData, List<EncryptedKey> encKeys)`
Store the specified EncryptedData and EncryptedKey(s) in the specified instance of EncryptedElementType as peer elements, following SAML 2 Errata E43 guidelines for forward and back referencing between the EncryptedData and EncryptedKey(s).
`protected EncryptedElementType`
Encrypter.`placeKeysInline(EncryptedElementType encElement, EncryptedData encData, List<EncryptedKey> encKeys)`
Place the EncryptedKey elements inside the KeyInfo element within the EncryptedData element.
`protected EncryptedElementType`
Encrypter.`processElements(EncryptedElementType encElement, EncryptedData encData, List<EncryptedKey> encKeys)`
Handle post-processing of generated EncryptedData and EncryptedKey(s) and storage in the appropriate EncryptedElementType instance.

## Uses of EncryptedElementType in org.opensaml.saml.saml2.profile.impl

Fields in org.opensaml.saml.saml2.profile.impl with type parameters of type EncryptedElementType
Modifier and Type
Field
Description
`private Predicate<Pair<ProfileRequestContext,EncryptedElementType>>`
AbstractDecryptAction.`decryptionPredicate`
Predicate determining whether to attempt decryption.
Methods in org.opensaml.saml.saml2.profile.impl that return types with arguments of type EncryptedElementType
Modifier and Type
Method
Description
`Predicate<Pair<ProfileRequestContext,EncryptedElementType>>`
AbstractDecryptAction.`getDecryptionPredicate()`
Get the predicate used to determine whether to attempt decryption.
Method parameters in org.opensaml.saml.saml2.profile.impl with type arguments of type EncryptedElementType
Modifier and Type
Method
Description
`void`
AbstractDecryptAction.`setDecryptionPredicate(Predicate<Pair<ProfileRequestContext,EncryptedElementType>> predicate)`
Set the predicate used to determine whether to attempt decryption.