|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.auth.FormatDnResolver
public class FormatDnResolver
Returns a DN by applying a formatter. See Formatter.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
log for this class. |
| Constructor Summary | |
|---|---|
FormatDnResolver()
Default constructor. |
|
FormatDnResolver(String format)
Creates a new format DN resolver. |
|
FormatDnResolver(String format,
Object[] args)
Creates a new format DN resolver with the supplied format and arguments. |
|
| Method Summary | |
|---|---|
boolean |
getEscapeUser()
Returns whether the user input will be escaped. |
String |
getFormat()
Returns the formatter string used to return the entry DN. |
Object[] |
getFormatArgs()
Returns the format arguments. |
String |
resolve(String user)
Returns a DN for the supplied user by applying it to a format string. |
void |
setEscapeUser(boolean b)
Sets whether the user input will be escaped. |
void |
setFormat(String format)
Sets the formatter string used to return the entry DN. |
void |
setFormatArgs(Object[] args)
Sets the format arguments. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
public FormatDnResolver()
public FormatDnResolver(String format)
format - formatter string
public FormatDnResolver(String format,
Object[] args)
format - to set formatter stringargs - to set formatter arguments| Method Detail |
|---|
public String getFormat()
public void setFormat(String format)
format - formatter stringpublic Object[] getFormatArgs()
public void setFormatArgs(Object[] args)
args - to set format argumentspublic boolean getEscapeUser()
LdapAttribute.escapeValue(String).
public void setEscapeUser(boolean b)
LdapAttribute.escapeValue(String).
b - whether the user input will be escaped.
public String resolve(String user)
throws LdapException
resolve in interface DnResolveruser - to format dn for
LdapException - neverpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||