Package org.wildfly.security.manager
Class WildFlySecurityManagerPermission
- java.lang.Object
-
- java.security.Permission
-
- org.wildfly.security.permission.AbstractPermission<This>
-
- org.wildfly.security.permission.AbstractNamedPermission<This>
-
- org.wildfly.security.permission.AbstractNameOnlyPermission<This>
-
- org.wildfly.security.permission.AbstractNameSetOnlyPermission<WildFlySecurityManagerPermission>
-
- org.wildfly.security.manager.WildFlySecurityManagerPermission
-
- All Implemented Interfaces:
Serializable
,Guard
,PermissionVerifier
public final class WildFlySecurityManagerPermission extends AbstractNameSetOnlyPermission<WildFlySecurityManagerPermission>
A permission specific to the WildFly security manager. The permission name may be one of the following:doUnchecked
getStackInspector
- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static WildFlySecurityManagerPermission
allPermission
(package private) static WildFlySecurityManagerPermission
doUncheckedPermission
(package private) static WildFlySecurityManagerPermission
getStackInspectorPermission
(package private) static StringMapping<WildFlySecurityManagerPermission>
mapping
private static long
serialVersionUID
private static StringEnumeration
strings
-
Fields inherited from interface org.wildfly.security.permission.PermissionVerifier
ALL, NONE
-
-
Constructor Summary
Constructors Constructor Description WildFlySecurityManagerPermission(String name)
Construct a new instance.WildFlySecurityManagerPermission(String name, String actions)
Construct a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WildFlySecurityManagerPermission
forName(String name)
Get the permission with the given name.WildFlySecurityManagerPermission
withName(String name)
Create a new permission which is identical to this one, except with a newname
.-
Methods inherited from class org.wildfly.security.permission.AbstractNameSetOnlyPermission
impliesName, nameEquals, nameHashCode, newPermissionCollection
-
Methods inherited from class org.wildfly.security.permission.AbstractNamedPermission
equals, hashCode, implies, impliesName, impliesName, nameEquals, nameEquals
-
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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
strings
private static final StringEnumeration strings
-
mapping
static final StringMapping<WildFlySecurityManagerPermission> mapping
-
allPermission
private static final WildFlySecurityManagerPermission allPermission
-
doUncheckedPermission
static final WildFlySecurityManagerPermission doUncheckedPermission
-
getStackInspectorPermission
static final WildFlySecurityManagerPermission getStackInspectorPermission
-
-
Constructor Detail
-
WildFlySecurityManagerPermission
public WildFlySecurityManagerPermission(String name)
Construct a new instance.- Parameters:
name
- the permission name (must not benull
)
-
-
Method Detail
-
withName
public WildFlySecurityManagerPermission withName(String name)
Description copied from class:AbstractNamedPermission
Create a new permission which is identical to this one, except with a newname
.- Specified by:
withName
in classAbstractNamedPermission<WildFlySecurityManagerPermission>
- Parameters:
name
- the name to use (must not benull
)- Returns:
- the new permission
-
forName
public static WildFlySecurityManagerPermission forName(String name)
Get the permission with the given name.- Parameters:
name
- the name (must not benull
)- Returns:
- the permission (not
null
) - Throws:
IllegalArgumentException
- if the name is not valid
-
-