public class CompositeACLPermission extends Object implements BitMaskPermission
This class represents a composite permission - a permission that contains one or more basic permissions. The bitmask value of this permission is calculated by combining (logical or) the bitmask values of the basic permissions it contains. Thus, a composite permission's bitmask can have more than one bit on, and each bit corresponds to one of the basic permissions that are part of the composite permission.
Constructor and Description |
---|
CompositeACLPermission(BasicACLPermission... permissions)
Builds an instance of
CompositeACLPermission with the given basic permissions. |
CompositeACLPermission(int mask)
Builds an instance of
CompositeACLPermission with the specified bitmask value. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getMaskValue()
Obtains the bitmask value of the permission.
|
int |
hashCode() |
String |
toBinaryString()
Returns the binary representation of this permission.
|
String |
toString() |
public CompositeACLPermission(int mask)
Builds an instance of CompositeACLPermission
with the specified bitmask value.
mask
- an int
representing the bitmask value of the permission being created.public CompositeACLPermission(BasicACLPermission... permissions)
Builds an instance of CompositeACLPermission
with the given basic permissions.
permissions
- a comma-separated list of BasicACLPermission
s.public int getMaskValue()
BitMaskPermission
Obtains the bitmask value of the permission.
getMaskValue
in interface BitMaskPermission
int
representing the value of the bitmask.public String toBinaryString()
Returns the binary representation of this permission.
String
containing this permission's binary representation.Copyright © 2018 JBoss by Red Hat. All rights reserved.