Package org.wildfly.security.authz
Class OneRole
- java.lang.Object
-
- org.wildfly.security.authz.OneRole
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Roles
addPrefix(String prefix)
Get a roles collection which adds a prefix to all role names.Roles
addSuffix(String suffix)
Get a roles collection which adds a suffix to all role names.Roles
and(Roles other)
Get the intersection of this collection and another.boolean
contains(String roleName)
Determine if this collection contains the given role name.boolean
isEmpty()
Determine whether this roles collection is empty.Iterator<String>
iterator()
Roles
minus(Roles other)
Get a roles collection which consists of the roles in this collection minus the roles in the other collection.Roles
or(Roles other)
Get the union of this collection and another.Spliterator<String>
spliterator()
Create aSpliterator
over this roles collection.-
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
containsAll, containsAny, xor
-
-
-
-
Field Detail
-
role
private final String role
-
-
Constructor Detail
-
OneRole
OneRole(String role)
-
-
Method Detail
-
contains
public boolean contains(String roleName)
Description copied from interface:Roles
Determine if this collection contains the given role name.
-
isEmpty
public boolean isEmpty()
Description copied from interface:Roles
Determine whether this roles collection is empty.
-
spliterator
public Spliterator<String> spliterator()
Description copied from interface:Roles
Create aSpliterator
over this roles collection.- Specified by:
spliterator
in interfaceIterable<String>
- Specified by:
spliterator
in interfaceRoles
- Returns:
- the spliterator (not
null
)
-
and
public Roles and(Roles other)
Description copied from interface:Roles
Get the intersection of this collection and another.
-
or
public Roles or(Roles other)
Description copied from interface:Roles
Get the union of this collection and another.
-
minus
public Roles minus(Roles other)
Description copied from interface:Roles
Get a roles collection which consists of the roles in this collection minus the roles in the other collection.
-
addSuffix
public Roles addSuffix(String suffix)
Description copied from interface:Roles
Get a roles collection which adds a suffix to all role names.
-
addPrefix
public Roles addPrefix(String prefix)
Description copied from interface:Roles
Get a roles collection which adds a prefix to all role names.
-
-