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
A general Elytron permission. The permission
name must be one of the following:
authenticatecreateAuthenticatorcreateAuthenticationContextConfigurationClientcreateSecurityDomaincreateSecurityRealmregisterSecurityDomaingetSecurityDomainunregisterSecurityDomainsetRunAsPrincipalcreateServerAuthenticationContextgetPrivateCredentialsgetIdentitygetIdentityForUpdatecreateAdHocIdentitywithDefaultRoleMapperhandleSecurityEvent
actions are not used and should be empty or null.- Author:
- David M. Lloyd
- See Also:
-
Field Summary
Fields inherited from interface org.wildfly.security.permission.PermissionVerifier
ALL, NONE -
Constructor Summary
ConstructorsConstructorDescriptionElytronPermission(String name) Construct a new instance.ElytronPermission(String name, String actions) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic ElytronPermissionGet the permission with the given 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, newPermissionCollectionMethods inherited from class org.wildfly.security.permission.AbstractNamedPermission
equals, hashCode, implies, impliesName, impliesName, nameEquals, nameEqualsMethods inherited from class org.wildfly.security.permission.AbstractPermission
equals, getActions, implies, requireEmptyActionsMethods inherited from class java.security.Permission
checkGuard, getName, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wildfly.security.permission.PermissionVerifier
and, checkPermission, not, or, toPermissionCollection, unless, xor
-
Constructor Details
-
ElytronPermission
Construct a new instance.- Parameters:
name- the name of the permission
-
ElytronPermission
Construct a new instance.- Parameters:
name- the name of the permissionactions- the actions (should be empty)
-
-
Method Details
-
withName
Description copied from class:AbstractNamedPermissionCreate a new permission which is identical to this one, except with a newname.- Specified by:
withNamein classAbstractNamedPermission<ElytronPermission>- Parameters:
name- the name to use (must not benull)- Returns:
- the new permission
-
forName
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
-