public class UserDN extends Object implements KeywordBindRule
Modifier and Type | Method and Description |
---|---|
static KeywordBindRule |
decode(String expression,
org.opends.server.authorization.dseecompat.EnumBindRuleType type)
Decodes an expression string representing a userdn bind rule.
|
EnumEvalResult |
evaluate(AciEvalContext evalCtx)
Performs the evaluation of a userdn bind rule based on the
evaluation context passed to it.
|
static boolean |
evaluate(Entry e,
org.forgerock.opendj.ldap.Dn clientDN,
org.forgerock.opendj.ldap.schema.AttributeType attrType)
This method searches an entry for an attribute value that is
treated as a DN.
|
static EnumEvalResult |
evalURL(AciEvalContext evalCtx,
LDAPURL url)
This method evaluates an URL userdn expression.
|
String |
toString() |
void |
toString(StringBuilder buffer)
Appends a string representation of this object to the provided buffer.
|
public static KeywordBindRule decode(String expression, org.opends.server.authorization.dseecompat.EnumBindRuleType type) throws AciException
expression
- The string representation of the userdn bind rule
expression.type
- An enumeration of the type of the bind rule.AciException
- If the expression failed to LDAP URL decode.public EnumEvalResult evaluate(AciEvalContext evalCtx)
evaluate
in interface KeywordBindRule
evalCtx
- The evaluation context to evaluate with.public static EnumEvalResult evalURL(AciEvalContext evalCtx, LDAPURL url)
evalCtx
- The evaluation context to use.url
- URL containing the URL to use in the evaluation.public static boolean evaluate(Entry e, org.forgerock.opendj.ldap.Dn clientDN, org.forgerock.opendj.ldap.schema.AttributeType attrType)
e
- The entry to get the attribute type from.clientDN
- The client authorization DN to check for.attrType
- The attribute type from the bind rule.public final void toString(StringBuilder buffer)
KeywordBindRule
toString
in interface KeywordBindRule
buffer
- The buffer into which a string representation of this object
should be appended.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.