public abstract class AbstractNameSetOnlyPermission<This extends AbstractNameSetOnlyPermission<This>> extends AbstractNameOnlyPermission<This>
ALL, NONE
Modifier | Constructor and Description |
---|---|
protected |
AbstractNameSetOnlyPermission(String name,
org.wildfly.security.util.StringEnumeration nameEnumeration)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
impliesName(String name)
Determine whether this permission implies the given name.
|
boolean |
nameEquals(String name)
Determine whether this permission has a name equal to the given name.
|
protected int |
nameHashCode()
Get the hash code of the name.
|
AbstractPermissionCollection |
newPermissionCollection()
Get an empty permission collection which is capable of holding instances of this permission type.
|
equals, hashCode, implies, impliesName, impliesName, nameEquals, nameEquals, withName
equals, getActions, implies, requireEmptyActions
checkGuard, getName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
and, checkPermission, from, from, from, from, not, or, toPermissionCollection, unless, xor
protected AbstractNameSetOnlyPermission(String name, org.wildfly.security.util.StringEnumeration nameEnumeration)
name
- the name of this permissionnameEnumeration
- the set of valid names for this permission typepublic AbstractPermissionCollection newPermissionCollection()
AbstractPermission
The default implementation returns a SimplePermissionCollection
.
newPermissionCollection
in class AbstractNameOnlyPermission<This extends AbstractNameSetOnlyPermission<This>>
public final boolean nameEquals(String name)
AbstractNamedPermission
nameEquals
in class AbstractNamedPermission<This extends AbstractNameSetOnlyPermission<This>>
name
- the name to checktrue
if this permission's name is equal to the given name, false
otherwisepublic final boolean impliesName(String name)
AbstractNamedPermission
impliesName
in class AbstractNamedPermission<This extends AbstractNameSetOnlyPermission<This>>
name
- the name to checktrue
if this permission's name implies the given name, false
otherwiseprotected final int nameHashCode()
AbstractNamedPermission
getName().hashCode()
.nameHashCode
in class AbstractNamedPermission<This extends AbstractNameSetOnlyPermission<This>>
Copyright © 2020 JBoss by Red Hat. All rights reserved.