Package org.wildfly.security.authz
Class RegexRoles
- java.lang.Object
-
- org.wildfly.security.authz.RegexRoles
-
class RegexRoles extends Object implements Roles
A regex roles.Roles that are checked against pattern. Roles that contain the pattern are then replaced using the replacement. Pattern can capture groups that replacement can make use of. It is possible to replace all occurrences or only the first occurrence of the pattern in role.
- Author:
- Diana Vilkolakova
-
-
Field Summary
Fields Modifier and Type Field Description private Roles
delegate
private boolean
keepNonMapped
private Pattern
pattern
private String
replace
private boolean
replaceAll
-
Constructor Summary
Constructors Constructor Description RegexRoles(Roles delegate, Pattern pattern, String replace, boolean keepNonMapped, boolean replaceAll)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(String roleName)
Determine if this collection contains the given role name.Iterator<String>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.authz.Roles
addPrefix, addSuffix, and, containsAll, containsAny, isEmpty, minus, or, spliterator, xor
-
-