Package org.opensaml.xmlsec.impl
Class BasicAlgorithmPolicyConfiguration
java.lang.Object
org.opensaml.xmlsec.impl.BasicAlgorithmPolicyConfiguration
- All Implemented Interfaces:
AlgorithmPolicyConfiguration
- Direct Known Subclasses:
BasicDecryptionConfiguration,BasicEncryptionConfiguration,BasicSignatureSigningConfiguration,BasicSignatureValidationConfiguration
public class BasicAlgorithmPolicyConfiguration
extends Object
implements AlgorithmPolicyConfiguration
Basic implementation of
AlgorithmPolicyConfiguration.
The value returned by getIncludeExcludePrecedence() defaults to
AlgorithmPolicyConfiguration.Precedence.INCLUDE.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensaml.xmlsec.AlgorithmPolicyConfiguration
AlgorithmPolicyConfiguration.Precedence -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AlgorithmPolicyConfiguration.PrecedenceDefault precedence.private booleanExclude merge flag.private Collection<String>Excluded algorithm URIs.private booleanInclude merge flag.private Collection<String>Included algorithm URIs.Precedence flag. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidSet the list of excluded algorithm URIs.voidsetExcludeMerge(boolean flag) Set the flag indicating whether to merge this configuration's excludes with one of a lower order of precedence, or to treat these excludes as authoritative.voidSet the list of included algorithm URIs.voidSet preference value indicating which should take precedence when both includes and excludes are non-empty.voidsetIncludeMerge(boolean flag) Set the flag indicating whether to merge this configuration's includes with one of a lower order of precedence, or to treat these includes as authoritative.
-
Field Details
-
DEFAULT_PRECEDENCE
Default precedence. -
includes
Included algorithm URIs. -
includeMerge
private boolean includeMergeInclude merge flag. -
excludes
Excluded algorithm URIs. -
excludeMerge
private boolean excludeMergeExclude merge flag. -
precedence
Precedence flag.
-
-
Constructor Details
-
BasicAlgorithmPolicyConfiguration
public BasicAlgorithmPolicyConfiguration()Constructor.
-
-
Method Details
-
getIncludedAlgorithms
- Specified by:
getIncludedAlgorithmsin interfaceAlgorithmPolicyConfiguration
-
setIncludedAlgorithms
Set the list of included algorithm URIs.- Parameters:
uris- the list of algorithms
-
isIncludeMerge
public boolean isIncludeMerge()Defaults to:
false.- Specified by:
isIncludeMergein interfaceAlgorithmPolicyConfiguration
-
setIncludeMerge
public void setIncludeMerge(boolean flag) Set the flag indicating whether to merge this configuration's includes with one of a lower order of precedence, or to treat these includes as authoritative.Defaults to:
false- Parameters:
flag- true if should merge, false otherwise
-
getExcludedAlgorithms
- Specified by:
getExcludedAlgorithmsin interfaceAlgorithmPolicyConfiguration
-
setExcludedAlgorithms
Set the list of excluded algorithm URIs.- Parameters:
uris- the list of algorithms
-
isExcludeMerge
public boolean isExcludeMerge()Defaults to:
true.- Specified by:
isExcludeMergein interfaceAlgorithmPolicyConfiguration
-
setExcludeMerge
public void setExcludeMerge(boolean flag) Set the flag indicating whether to merge this configuration's excludes with one of a lower order of precedence, or to treat these excludes as authoritative.Defaults to:
true- Parameters:
flag- true if should merge, false otherwise
-
getIncludeExcludePrecedence
- Specified by:
getIncludeExcludePrecedencein interfaceAlgorithmPolicyConfiguration
-
setIncludeExcludePrecedence
Set preference value indicating which should take precedence when both includes and excludes are non-empty.- Parameters:
value- the precedence value
-