Class PermBindRulePair
java.lang.Object
org.opends.server.authorization.dseecompat.PermBindRulePair
A class representing a permission-bind rule pair. There can be multiple of these in an ACI.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PermBindRulePair
decode
(String perm, String rights, String bRule, ServerContext serverContext) Decodes a permission bind rule pair.Gets the bind rule part of this pair.boolean
Checks the permission to see if it has this access type.boolean
hasRights
(int right) Try and match one or more of the specified rights against a rights set of the permission class.toString()
-
Method Details
-
decode
public static PermBindRulePair decode(String perm, String rights, String bRule, ServerContext serverContext) throws AciException Decodes a permission bind rule pair.- Parameters:
perm
- A string representing the permissions.rights
- A string representing the rights.bRule
- A string representing the bind rule.serverContext
- The server context- Returns:
- An permission bind rule pair class representing this pair.
- Throws:
AciException
- If any of the strings fail to decode.
-
getBindRule
Gets the bind rule part of this pair.- Returns:
- The bind rule part of this pair.
-
hasAccessType
Checks the permission to see if it has this access type.- Parameters:
accessType
- An enumeration of the desired access type.- Returns:
- True if the access type equals the permission access type.
-
hasRights
public boolean hasRights(int right) Try and match one or more of the specified rights against a rights set of the permission class.- Parameters:
right
- The rights to match.- Returns:
- True if one or more of the specified rights match a right in the rights set of the permission class.
-
toString
-