|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.acl.CompositeACLPermission
public class CompositeACLPermission
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public int getMaskValue()
BitMaskPermission
Obtains the bitmask value of the permission.
getMaskValue
in interface BitMaskPermission
int
representing the value of the bitmask.public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public String toBinaryString()
Returns the binary representation of this permission.
String
containing this permission's binary representation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |