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 RolesaddPrefix(String prefix)Get a roles collection which adds a prefix to all role names.RolesaddSuffix(String suffix)Get a roles collection which adds a suffix to all role names.Rolesand(Roles other)Get the intersection of this collection and another.booleancontains(String roleName)Determine if this collection contains the given role name.booleanisEmpty()Determine whether this roles collection is empty.Iterator<String>iterator()Rolesminus(Roles other)Get a roles collection which consists of the roles in this collection minus the roles in the other collection.Rolesor(Roles other)Get the union of this collection and another.Spliterator<String>spliterator()Create aSpliteratorover 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:RolesDetermine if this collection contains the given role name.
-
isEmpty
public boolean isEmpty()
Description copied from interface:RolesDetermine whether this roles collection is empty.
-
spliterator
public Spliterator<String> spliterator()
Description copied from interface:RolesCreate aSpliteratorover this roles collection.- Specified by:
spliteratorin interfaceIterable<String>- Specified by:
spliteratorin interfaceRoles- Returns:
- the spliterator (not
null)
-
and
public Roles and(Roles other)
Description copied from interface:RolesGet the intersection of this collection and another.
-
or
public Roles or(Roles other)
Description copied from interface:RolesGet the union of this collection and another.
-
minus
public Roles minus(Roles other)
Description copied from interface:RolesGet 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:RolesGet a roles collection which adds a suffix to all role names.
-
addPrefix
public Roles addPrefix(String prefix)
Description copied from interface:RolesGet a roles collection which adds a prefix to all role names.
-
-