public class Permission extends Object
Modifier and Type | Method and Description |
---|---|
static Permission |
decode(String accessType,
String rights)
Decode an string representation of bind rule permission into a Permission
class.
|
boolean |
hasAccessType(org.opends.server.authorization.dseecompat.EnumAccessType accessType)
Checks if a given access type enumeration is equal to this classes
access type.
|
boolean |
hasRights(int rights)
Checks if the permission's rights has the specified rights.
|
String |
toString() |
void |
toString(StringBuilder buffer)
Appends a string representation of this object to the provided buffer.
|
public static Permission decode(String accessType, String rights) throws AciException
accessType
- A string representing the access type.rights
- A string representing the rights.AciException
- If the accesstype or rights strings are invalid.public boolean hasAccessType(org.opends.server.authorization.dseecompat.EnumAccessType accessType)
accessType
- An enumeration representing an access type.public boolean hasRights(int rights)
rights
- The rights to check for.public final void toString(StringBuilder buffer)
buffer
- The buffer into which a string representation of this object
should be appended.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.