Package org.wildfly.security.permission
Class ElytronPermission
- 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<ElytronPermission>
-
- org.wildfly.security.permission.ElytronPermission
-
- All Implemented Interfaces:
Serializable
,Guard
,PermissionVerifier
public final class ElytronPermission extends AbstractNameSetOnlyPermission<ElytronPermission>
A general Elytron permission. The permissionname
must be one of the following:authenticate
createAuthenticator
createAuthenticationContextConfigurationClient
createSecurityDomain
createSecurityRealm
registerSecurityDomain
getSecurityDomain
unregisterSecurityDomain
setRunAsPrincipal
createServerAuthenticationContext
getPrivateCredentials
getIdentity
getIdentityForUpdate
createAdHocIdentity
withDefaultRoleMapper
actions
are not used and should be empty ornull
.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.wildfly.security.permission.PermissionVerifier
ALL, NONE
-
-
Constructor Summary
Constructors Constructor Description ElytronPermission(String name)
Construct a new instance.ElytronPermission(String name, String actions)
Construct a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ElytronPermission
forName(String name)
Get the permission with the given name.ElytronPermission
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
-
-
-
-
Constructor Detail
-
ElytronPermission
public ElytronPermission(String name)
Construct a new instance.- Parameters:
name
- the name of the permission
-
-
Method Detail
-
withName
public ElytronPermission 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<ElytronPermission>
- Parameters:
name
- the name to use (must not benull
)- Returns:
- the new permission
-
forName
public static ElytronPermission 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
-
-