|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DirectoryManagerBackend
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_VALUE_CHARSET
The character set used when encoding attribute values. |
static java.lang.String[] |
VIRTUAL_ATTRIBUTES
The list of "virtual" attributes, that is, attributes that are generated by Moria itself, and not read from any physical attribute through the backend. |
Method Summary | |
---|---|
java.util.HashMap |
authenticate(Credentials userCredentials,
java.lang.String[] attributeRequest)
Attempts to authenticate a user and retrieve a set of user attributes. |
void |
close()
Closes the current backend and releases any resources. |
void |
open(IndexedReference[] references)
Opens a new backend connection. |
boolean |
userExists(java.lang.String username)
Checks whether a given user actually exists. |
Field Detail |
---|
static final java.lang.String ATTRIBUTE_VALUE_CHARSET
"ISO-8859-1"
.
static final java.lang.String[] VIRTUAL_ATTRIBUTES
{"tgt"}
.
Method Detail |
---|
void open(IndexedReference[] references)
references
- The backend references in question. Cannot be
null
, and must contain at least one reference.boolean userExists(java.lang.String username) throws BackendException
username
- The username to check for.
true
if we can find a user element with the given
username, otherwise false
.
BackendException
- If there was a problem accessing the backend.java.util.HashMap authenticate(Credentials userCredentials, java.lang.String[] attributeRequest) throws AuthenticationFailedException, BackendException
userCredentials
- The user's credentials. Cannot be null
.attributeRequest
- A list of requested attributes from the user object. May be
null
or an empty array. Not case sensitive.
HashMap
.
Attribute values should be encoded using ISO-8859-1.
AuthenticationFailedException
- If the authentication fails.
BackendException
- If there was a problem accessing the backend.void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |