Package org.opensaml.xmlsec.impl
Class BasicAlgorithmPolicyConfiguration
java.lang.Object
org.opensaml.xmlsec.impl.BasicAlgorithmPolicyConfiguration
- All Implemented Interfaces:
AlgorithmPolicyConfiguration
- Direct Known Subclasses:
BasicWhitelistBlacklistConfiguration
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.Precedence
Default precedence.private boolean
Exclude merge flag.private Collection<String>
Excluded algorithm URIs.private boolean
Include merge flag.private Collection<String>
Included algorithm URIs.Precedence flag. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the collection of excluded algorithm URIs.Get the collection of included algorithm URIs.Get preference value indicating which should take precedence when both include and exclude collections are non-empty.boolean
Flag indicating whether to merge this configuration's excludes with one of a lower order of precedence, or to treat this exclude collection as authoritative.boolean
Flag indicating whether to merge this configuration's includes with one of a lower order of precedence, or to treat this include collection as authoritative.void
Set the list of excluded algorithm URIs.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.void
Set the list of included algorithm URIs.void
Set preference value indicating which should take precedence when both includes and excludes are non-empty.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.
-
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
Get the collection of included algorithm URIs.- Specified by:
getIncludedAlgorithms
in interfaceAlgorithmPolicyConfiguration
- Returns:
- the collection of algorithms
-
setIncludedAlgorithms
Set the list of included algorithm URIs.- Parameters:
uris
- the list of algorithms
-
isIncludeMerge
public boolean isIncludeMerge()Flag indicating whether to merge this configuration's includes with one of a lower order of precedence, or to treat this include collection as authoritative.Defaults to:
false
.- Specified by:
isIncludeMerge
in interfaceAlgorithmPolicyConfiguration
- Returns:
- true if should merge, false otherwise
-
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
Get the collection of excluded algorithm URIs.- Specified by:
getExcludedAlgorithms
in interfaceAlgorithmPolicyConfiguration
- Returns:
- the collection of algorithms
-
setExcludedAlgorithms
Set the list of excluded algorithm URIs.- Parameters:
uris
- the list of algorithms
-
isExcludeMerge
public boolean isExcludeMerge()Flag indicating whether to merge this configuration's excludes with one of a lower order of precedence, or to treat this exclude collection as authoritative.Defaults to:
true
.- Specified by:
isExcludeMerge
in interfaceAlgorithmPolicyConfiguration
- Returns:
- true if should merge, false otherwise
-
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
Get preference value indicating which should take precedence when both include and exclude collections are non-empty.- Specified by:
getIncludeExcludePrecedence
in interfaceAlgorithmPolicyConfiguration
- Returns:
- the configured precedence value.
-
setIncludeExcludePrecedence
Set preference value indicating which should take precedence when both includes and excludes are non-empty.- Parameters:
value
- the precedence value
-