Class BasicEncryptionConfiguration
java.lang.Object
org.opensaml.xmlsec.impl.BasicAlgorithmPolicyConfiguration
net.shibboleth.oidc.security.jose.impl.BasicEncryptionConfiguration
- All Implemented Interfaces:
EncryptionConfiguration,AlgorithmPolicyConfiguration
public class BasicEncryptionConfiguration
extends BasicAlgorithmPolicyConfiguration
implements EncryptionConfiguration
Basic implementation of
EncryptionConfiguration for handling JWE encryption.- Since:
- 2.2.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensaml.xmlsec.AlgorithmPolicyConfiguration
AlgorithmPolicyConfiguration.Precedence -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CredentialResolverThe content encryption key (CEK) resolver.Data encryption algorithm URIs.private CredentialResolverThe EncryptedKey's credential resolver.Key transport encryption algorithm URIs.Fields inherited from class org.opensaml.xmlsec.impl.BasicAlgorithmPolicyConfiguration
DEFAULT_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the CredentialResolver to resolve the content encryption key.Get the list of preferred data encryption algorithm URIs, in preference order.Get the CredentialResolver to resolve the key encryption or key wrapping key.Get the list of preferred key transport encryption algorithm URIs, in preference order.voidSet the CredentialResolver to resolve the content encryption key.voidsetDataEncryptionAlgorithms(List<String> algorithms) Set the data encryption algorithms to use.voidsetKEKCredentialResolver(CredentialResolver resolver) Set the CredentialResolver to resolve the key encryption or key wrapping key.voidsetKeyTransportEncryptionAlgorithms(List<String> algorithms) Set the key transport encryption algorithms to use.Methods inherited from class org.opensaml.xmlsec.impl.BasicAlgorithmPolicyConfiguration
getExcludedAlgorithms, getIncludedAlgorithms, getIncludeExcludePrecedence, isExcludeMerge, isIncludeMerge, setExcludedAlgorithms, setExcludeMerge, setIncludedAlgorithms, setIncludeExcludePrecedence, setIncludeMergeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensaml.xmlsec.AlgorithmPolicyConfiguration
getExcludedAlgorithms, getIncludedAlgorithms, getIncludeExcludePrecedence, isExcludeMerge, isIncludeMerge
-
Field Details
-
dataEncryptionAlgorithms
Data encryption algorithm URIs. -
keyTransportEncryptionAlgorithms
Key transport encryption algorithm URIs. -
kekKeyCredentialResolver
The EncryptedKey's credential resolver. -
contentEncryptionKeyCredentialResolver
The content encryption key (CEK) resolver.
-
-
Constructor Details
-
BasicEncryptionConfiguration
public BasicEncryptionConfiguration()Constructor.
-
-
Method Details
-
getContentEncryptionKeyCredentialResolver
Description copied from interface:EncryptionConfigurationGet the CredentialResolver to resolve the content encryption key.- Specified by:
getContentEncryptionKeyCredentialResolverin interfaceEncryptionConfiguration- Returns:
- the KeyInfoCredentialResolver instance
-
setContentEncryptionKeyCredentialResolver
Set the CredentialResolver to resolve the content encryption key.- Parameters:
resolver- the CredentialResolver instance
-
getKEKCredentialResolver
Description copied from interface:EncryptionConfigurationGet the CredentialResolver to resolve the key encryption or key wrapping key.- Specified by:
getKEKCredentialResolverin interfaceEncryptionConfiguration- Returns:
- the CredentialResolver instance
-
setKEKCredentialResolver
Set the CredentialResolver to resolve the key encryption or key wrapping key.- Parameters:
resolver- the CredentialResolver instance
-
getDataEncryptionAlgorithms
Get the list of preferred data encryption algorithm URIs, in preference order.- Specified by:
getDataEncryptionAlgorithmsin interfaceEncryptionConfiguration- Returns:
- the list of algorithm URIs, may be empty
-
setDataEncryptionAlgorithms
Set the data encryption algorithms to use.- Parameters:
algorithms- the list of algorithms
-
getKeyTransportEncryptionAlgorithms
@Nonnull @NonnullElements @Unmodifiable @NotLive public List<String> getKeyTransportEncryptionAlgorithms()Get the list of preferred key transport encryption algorithm URIs, in preference order.- Specified by:
getKeyTransportEncryptionAlgorithmsin interfaceEncryptionConfiguration- Returns:
- the list of algorithm URIs, may be empty
-
setKeyTransportEncryptionAlgorithms
Set the key transport encryption algorithms to use.- Parameters:
algorithms- the list of algorithms
-