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 ofAlgorithmPolicyConfiguration.The value returned by
getIncludeExcludePrecedence()defaults toAlgorithmPolicyConfiguration.Precedence.INCLUDE.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opensaml.xmlsec.AlgorithmPolicyConfiguration
AlgorithmPolicyConfiguration.Precedence
-
-
Field Summary
Fields Modifier and Type Field Description static AlgorithmPolicyConfiguration.PrecedenceDEFAULT_PRECEDENCEDefault precedence.private booleanexcludeMergeExclude merge flag.private Collection<String>excludesExcluded algorithm URIs.private booleanincludeMergeInclude merge flag.private Collection<String>includesIncluded algorithm URIs.private AlgorithmPolicyConfiguration.PrecedenceprecedencePrecedence flag.
-
Constructor Summary
Constructors Constructor Description BasicAlgorithmPolicyConfiguration()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>getExcludedAlgorithms()Collection<String>getIncludedAlgorithms()AlgorithmPolicyConfiguration.PrecedencegetIncludeExcludePrecedence()booleanisExcludeMerge()booleanisIncludeMerge()voidsetExcludedAlgorithms(Collection<String> uris)Set 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.voidsetIncludedAlgorithms(Collection<String> uris)Set the list of included algorithm URIs.voidsetIncludeExcludePrecedence(AlgorithmPolicyConfiguration.Precedence value)Set 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 Detail
-
DEFAULT_PRECEDENCE
public static final AlgorithmPolicyConfiguration.Precedence DEFAULT_PRECEDENCE
Default precedence.
-
includes
private Collection<String> includes
Included algorithm URIs.
-
includeMerge
private boolean includeMerge
Include merge flag.
-
excludes
private Collection<String> excludes
Excluded algorithm URIs.
-
excludeMerge
private boolean excludeMerge
Exclude merge flag.
-
precedence
private AlgorithmPolicyConfiguration.Precedence precedence
Precedence flag.
-
-
Method Detail
-
getIncludedAlgorithms
@Nonnull @NonnullElements @NotLive @Unmodifiable public Collection<String> getIncludedAlgorithms()
- Specified by:
getIncludedAlgorithmsin interfaceAlgorithmPolicyConfiguration
-
setIncludedAlgorithms
public void setIncludedAlgorithms(@Nullable Collection<String> uris)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
@Nonnull @NonnullElements @NotLive @Unmodifiable public Collection<String> getExcludedAlgorithms()
- Specified by:
getExcludedAlgorithmsin interfaceAlgorithmPolicyConfiguration
-
setExcludedAlgorithms
public void setExcludedAlgorithms(@Nullable Collection<String> uris)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
@Nonnull public AlgorithmPolicyConfiguration.Precedence getIncludeExcludePrecedence()
- Specified by:
getIncludeExcludePrecedencein interfaceAlgorithmPolicyConfiguration
-
setIncludeExcludePrecedence
public void setIncludeExcludePrecedence(@Nonnull AlgorithmPolicyConfiguration.Precedence value)Set preference value indicating which should take precedence when both includes and excludes are non-empty.- Parameters:
value- the precedence value
-
-