public class BasicWhitelistBlacklistConfiguration extends Object implements WhitelistBlacklistConfiguration
WhitelistBlacklistConfiguration
.
The value returned by getWhitelistBlacklistPrecedence()
defaults to
WhitelistBlacklistConfiguration.Precedence.WHITELIST
.
WhitelistBlacklistConfiguration.Precedence
Modifier and Type | Field and Description |
---|---|
static WhitelistBlacklistConfiguration.Precedence |
DEFAULT_PRECEDENCE
Default precedence.
|
Constructor and Description |
---|
BasicWhitelistBlacklistConfiguration()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getBlacklistedAlgorithms()
Get the list of blacklisted algorithm URI's.
|
WhitelistBlacklistConfiguration.Precedence |
getWhitelistBlacklistPrecedence()
Get preference value indicating which should take precedence when both whitelist and blacklist are non-empty.
|
Collection<String> |
getWhitelistedAlgorithms()
Get the list of whitelisted algorithm URI's.
|
boolean |
isBlacklistMerge()
Flag indicating whether to merge this configuration's blacklist with one of a lower order of precedence,
or to treat this blacklist as authoritative.
|
boolean |
isWhitelistMerge()
Flag indicating whether to merge this configuration's whitelist with one of a lower order of precedence,
or to treat this whitelist as authoritative.
|
void |
setBlacklistedAlgorithms(Collection<String> uris)
Set the list of blacklisted algorithm URI's.
|
void |
setBlacklistMerge(boolean flag)
Set the flag indicating whether to merge this configuration's blacklist with one of a lower order of precedence,
or to treat this blacklist as authoritative.
|
void |
setWhitelistBlacklistPrecedence(WhitelistBlacklistConfiguration.Precedence value)
Set preference value indicating which should take precedence when both whitelist and blacklist are non-empty.
|
void |
setWhitelistedAlgorithms(Collection<String> uris)
Set the list of whitelisted algorithm URI's.
|
void |
setWhitelistMerge(boolean flag)
Set the flag indicating whether to merge this configuration's whitelist with one of a lower order of precedence,
or to treat this whitelist as authoritative.
|
public static final WhitelistBlacklistConfiguration.Precedence DEFAULT_PRECEDENCE
public BasicWhitelistBlacklistConfiguration()
@Nonnull @NonnullElements @NotLive @Unmodifiable public Collection<String> getWhitelistedAlgorithms()
getWhitelistedAlgorithms
in interface WhitelistBlacklistConfiguration
public void setWhitelistedAlgorithms(@Nullable Collection<String> uris)
uris
- the list of algorithmspublic boolean isWhitelistMerge()
Defaults to: false
.
isWhitelistMerge
in interface WhitelistBlacklistConfiguration
public void setWhitelistMerge(boolean flag)
Defaults to: false
flag
- true if should merge, false otherwise@Nonnull @NonnullElements @NotLive @Unmodifiable public Collection<String> getBlacklistedAlgorithms()
getBlacklistedAlgorithms
in interface WhitelistBlacklistConfiguration
public void setBlacklistedAlgorithms(@Nullable Collection<String> uris)
uris
- the list of algorithmspublic boolean isBlacklistMerge()
Defaults to: true
.
isBlacklistMerge
in interface WhitelistBlacklistConfiguration
public void setBlacklistMerge(boolean flag)
Defaults to: true
flag
- true if should merge, false otherwise@Nonnull public WhitelistBlacklistConfiguration.Precedence getWhitelistBlacklistPrecedence()
getWhitelistBlacklistPrecedence
in interface WhitelistBlacklistConfiguration
public void setWhitelistBlacklistPrecedence(@Nonnull WhitelistBlacklistConfiguration.Precedence value)
value
- the precedence valueCopyright © 2016 JBoss by Red Hat. All rights reserved.