public class UserDN extends Object implements KeywordBindRule
Modifier and Type | Method and Description |
---|---|
static KeywordBindRule |
decode(String expression,
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 EnumEvalResult |
evaluate(Entry e,
DN clientDN,
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, 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 EnumEvalResult evaluate(Entry e, DN clientDN, 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)
toString
in interface KeywordBindRule
buffer
- The buffer into which a string representation of this object
should be appended.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.