Package org.opensaml.xmlsec.impl
Class BasicDecryptionConfiguration
java.lang.Object
org.opensaml.xmlsec.impl.BasicAlgorithmPolicyConfiguration
org.opensaml.xmlsec.impl.BasicDecryptionConfiguration
- All Implemented Interfaces:
AlgorithmPolicyConfiguration,DecryptionConfiguration
public class BasicDecryptionConfiguration
extends BasicAlgorithmPolicyConfiguration
implements DecryptionConfiguration
Basic implementation of
DecryptionConfiguration.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensaml.xmlsec.AlgorithmPolicyConfiguration
AlgorithmPolicyConfiguration.Precedence -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate KeyInfoCredentialResolverThe EncryptedData's KeyInfo credential resolver.private EncryptedKeyResolverThe EncryptedKey resolver.private KeyInfoCredentialResolverThe EncryptedKey's KeyInfo credential resolver.The set of recipients against which to evaluate candidate EncryptedKey elements.Fields inherited from class org.opensaml.xmlsec.impl.BasicAlgorithmPolicyConfiguration
DEFAULT_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the KeyInfoCredentialResolver to use when processing the EncryptedData/KeyInfo.Get the EncryptedKeyResolver to use when resolving the EncryptedKey(s) to process.Get the KeyInfoCredentialResolver to use when processing the EncryptedKey/KeyInfo (the Key Encryption Key or KEK).Get the set of recipients against which to evaluate candidate EncryptedKey elements.Set the KeyInfoCredentialResolver to use when processing the EncryptedData/KeyInfo.setEncryptedKeyResolver(EncryptedKeyResolver resolver) Get the EncryptedKeyResolver to use when resolving the EncryptedKey(s) to process.Set the KeyInfoCredentialResolver to use when processing the EncryptedKey/KeyInfo (the Key Encryption Key or KEK).voidsetRecipients(Set<String> newRecipients) Set the set of recipients against which to evaluate candidate EncryptedKey elements.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
-
dataKeyInfoCredentialResolver
The EncryptedData's KeyInfo credential resolver. -
kekKeyInfoCredentialResolver
The EncryptedKey's KeyInfo credential resolver. -
encryptedKeyResolver
The EncryptedKey resolver. -
recipients
The set of recipients against which to evaluate candidate EncryptedKey elements.
-
-
Constructor Details
-
BasicDecryptionConfiguration
public BasicDecryptionConfiguration()
-
-
Method Details
-
getDataKeyInfoCredentialResolver
Get the KeyInfoCredentialResolver to use when processing the EncryptedData/KeyInfo.- Specified by:
getDataKeyInfoCredentialResolverin interfaceDecryptionConfiguration- Returns:
- the KeyInfoCredentialResolver instance
-
setDataKeyInfoCredentialResolver
@Nonnull public BasicDecryptionConfiguration setDataKeyInfoCredentialResolver(@Nullable KeyInfoCredentialResolver resolver) Set the KeyInfoCredentialResolver to use when processing the EncryptedData/KeyInfo.- Parameters:
resolver- the KeyInfoCredentialResolver instance- Returns:
- this object
-
getKEKKeyInfoCredentialResolver
Get the KeyInfoCredentialResolver to use when processing the EncryptedKey/KeyInfo (the Key Encryption Key or KEK).- Specified by:
getKEKKeyInfoCredentialResolverin interfaceDecryptionConfiguration- Returns:
- the KeyInfoCredentialResolver instance
-
setKEKKeyInfoCredentialResolver
@Nonnull public BasicDecryptionConfiguration setKEKKeyInfoCredentialResolver(@Nullable KeyInfoCredentialResolver resolver) Set the KeyInfoCredentialResolver to use when processing the EncryptedKey/KeyInfo (the Key Encryption Key or KEK).- Parameters:
resolver- the KeyInfoCredentialResolver instance- Returns:
- this object
-
getEncryptedKeyResolver
Get the EncryptedKeyResolver to use when resolving the EncryptedKey(s) to process.- Specified by:
getEncryptedKeyResolverin interfaceDecryptionConfiguration- Returns:
- the EncryptedKeyResolver instance
-
setEncryptedKeyResolver
@Nonnull public BasicDecryptionConfiguration setEncryptedKeyResolver(@Nullable EncryptedKeyResolver resolver) Get the EncryptedKeyResolver to use when resolving the EncryptedKey(s) to process.- Parameters:
resolver- the EncryptedKeyResolver instance- Returns:
- this object
-
getRecipients
Get the set of recipients against which to evaluate candidate EncryptedKey elements.- Specified by:
getRecipientsin interfaceDecryptionConfiguration- Returns:
- the recipients
-
setRecipients
Set the set of recipients against which to evaluate candidate EncryptedKey elements.- Parameters:
newRecipients- the recipients
-