public final class ElytronPermission extends Permission
Constructor and Description |
---|
ElytronPermission(String name)
Construct a new instance.
|
ElytronPermission(String name,
String actions)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determine if this permission equals the other object.
|
String |
getActions()
Get the actions.
|
int |
hashCode()
Get the hash code of this permission.
|
boolean |
implies(Permission p)
Determine if this permission implies the other permission.
|
PermissionCollection |
newPermissionCollection()
Get the specialized permission collection type for this permission class.
|
checkGuard, getName, toString
public ElytronPermission(String name)
name
- the name of the permissionpublic PermissionCollection newPermissionCollection()
newPermissionCollection
in class Permission
public String getActions()
getActions
in class Permission
public boolean implies(Permission p)
ElytronPermission
and the name of the permission is equal to the name of this permission.implies
in class Permission
p
- the permission to testtrue
if the given permission is implied by this one, false
otherwisepublic boolean equals(Object obj)
ElytronPermission
and the name of the permission is equal to the name of this permission.equals
in class Permission
obj
- the object to testtrue
if the given object is equal to this one, false
otherwisepublic int hashCode()
hashCode
in class Permission
Copyright © 2021 JBoss by Red Hat. All rights reserved.