Package org.wildfly.security.permission
Class AbstractNameOnlyPermission<This extends AbstractNameOnlyPermission<This>>
- java.lang.Object
-
- java.security.Permission
-
- org.wildfly.security.permission.AbstractPermission<This>
-
- org.wildfly.security.permission.AbstractNamedPermission<This>
-
- org.wildfly.security.permission.AbstractNameOnlyPermission<This>
-
- All Implemented Interfaces:
Serializable
,Guard
,PermissionVerifier
- Direct Known Subclasses:
AbstractNameSetOnlyPermission
,ChangeRoleMapperPermission
,RunAsPrincipalPermission
public abstract class AbstractNameOnlyPermission<This extends AbstractNameOnlyPermission<This>> extends AbstractNamedPermission<This>
A permission which has a name only, and no actions.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.wildfly.security.permission.PermissionVerifier
ALL, NONE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractNameOnlyPermission(String name)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractPermissionCollection
newPermissionCollection()
Get an empty permission collection which is capable of holding instances of this permission type.-
Methods inherited from class org.wildfly.security.permission.AbstractNamedPermission
equals, hashCode, implies, impliesName, impliesName, impliesName, nameEquals, nameEquals, nameEquals, nameHashCode, withName
-
Methods inherited from class org.wildfly.security.permission.AbstractPermission
equals, getActions, implies, requireEmptyActions
-
Methods inherited from class java.security.Permission
checkGuard, getName, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.permission.PermissionVerifier
and, checkPermission, not, or, toPermissionCollection, unless, xor
-
-
-
-
Constructor Detail
-
AbstractNameOnlyPermission
protected AbstractNameOnlyPermission(String name)
Construct a new instance.- Parameters:
name
- the permission name (must not benull
)
-
-
Method Detail
-
newPermissionCollection
public AbstractPermissionCollection newPermissionCollection()
Description copied from class:AbstractPermission
Get an empty permission collection which is capable of holding instances of this permission type.The default implementation returns a
SimplePermissionCollection
.- Overrides:
newPermissionCollection
in classAbstractPermission<This extends AbstractNameOnlyPermission<This>>
- Returns:
- the permission collection to use
-
-