Package org.wildfly.security.authz
Class RegexRoleMapper.Builder
- java.lang.Object
-
- org.wildfly.security.authz.RegexRoleMapper.Builder
-
- Enclosing class:
- RegexRoleMapper
public static class RegexRoleMapper.Builder extends Object
Construct a newRegexRoleMapper.Builder
for creating theRegexRoleMapper
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegexRoleMapper
build()
RegexRoleMapper.Builder
setKeepNonMapped(boolean keepNonMapped)
RegexRoleMapper.Builder
setPattern(String pattern)
RegexRoleMapper.Builder
setReplaceAll(boolean replaceAll)
RegexRoleMapper.Builder
setReplacement(String replacement)
-
-
-
Method Detail
-
build
public RegexRoleMapper build()
-
setPattern
public RegexRoleMapper.Builder setPattern(String pattern)
-
setReplacement
public RegexRoleMapper.Builder setReplacement(String replacement)
-
setKeepNonMapped
public RegexRoleMapper.Builder setKeepNonMapped(boolean keepNonMapped)
-
setReplaceAll
public RegexRoleMapper.Builder setReplaceAll(boolean replaceAll)
- Parameters:
replaceAll
- if true replaces all occurrences of pattern in role. If false replaces only the first occurrence.- Returns:
- builder
-
-