Package org.wildfly.security.keystore
Class AliasFilter
- java.lang.Object
-
- org.wildfly.security.keystore.AliasFilter
-
-
Field Summary
Fields Modifier and Type Field Description static AliasFilter
ALL
static AliasFilter
NONE
protected Predicate<String>
previous
-
Constructor Summary
Constructors Modifier Constructor Description private
AliasFilter(Predicate<String> previous)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AliasFilter
add(String alias)
static AliasFilter
fromString(String filterString)
Create an AliasFilter based on a filterString in one of the following formats: - alias1,alais2,alias3 - Only the aliases listed are accepted ALL:-alias1:-alias2:-alias3 - All aliases allowed except those listed. NONE:+alias1:+alias2:+alais3 - Only the aliases listed are accepted Note: For ambiguous definitions aliases are evaluated against the filter string from right to left with the first match winning, e.g.AliasFilter
remove(String alias)
abstract boolean
test(String t)
-
-
-
Field Detail
-
ALL
public static final AliasFilter ALL
-
NONE
public static final AliasFilter NONE
-
-
Method Detail
-
add
public AliasFilter add(String alias)
-
remove
public AliasFilter remove(String alias)
-
fromString
public static AliasFilter fromString(String filterString)
Create an AliasFilter based on a filterString in one of the following formats: -- alias1,alais2,alias3 - Only the aliases listed are accepted
- ALL:-alias1:-alias2:-alias3 - All aliases allowed except those listed.
- NONE:+alias1:+alias2:+alais3 - Only the aliases listed are accepted
- ALL:-alias1:+alias1 - alias1 is an accepted alias.
- Parameters:
filterString
-- Returns:
-
-