Class RunAsPrincipalPermission
- java.lang.Object
-
- java.security.Permission
-
- org.wildfly.security.permission.AbstractPermission<This>
-
- org.wildfly.security.permission.AbstractNamedPermission<This>
-
- org.wildfly.security.permission.AbstractNameOnlyPermission<RunAsPrincipalPermission>
-
- org.wildfly.security.auth.permission.RunAsPrincipalPermission
-
- All Implemented Interfaces:
Serializable
,Guard
,PermissionVerifier
public final class RunAsPrincipalPermission extends AbstractNameOnlyPermission<RunAsPrincipalPermission>
The permission to run as another principal within some security domain. Note that this permission is checked relative to the security domain that the user is authenticated to. The principal name is the effective name after all rewrite operations have taken place.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from interface org.wildfly.security.permission.PermissionVerifier
ALL, NONE
-
-
Constructor Summary
Constructors Constructor Description RunAsPrincipalPermission(String name)
Construct a new instance.RunAsPrincipalPermission(String name, String ignored)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RunAsPrincipalPermission
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.AbstractNameOnlyPermission
newPermissionCollection
-
Methods inherited from class org.wildfly.security.permission.AbstractNamedPermission
equals, hashCode, implies, impliesName, impliesName, impliesName, nameEquals, nameEquals, nameEquals, nameHashCode
-
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
-
-
Constructor Detail
-
RunAsPrincipalPermission
public RunAsPrincipalPermission(String name)
Construct a new instance.- Parameters:
name
- the principal name, or*
for global run-as permissions
-
-
Method Detail
-
withName
public RunAsPrincipalPermission 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<RunAsPrincipalPermission>
- Parameters:
name
- the name to use (must not benull
)- Returns:
- the new permission
-
-