public interface AuthenticationModule
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
QUERY_USER_DN
Query type fetching a specific user and group for a given distinguished name
|
static java.lang.String |
QUERY_USERS_AND_GROUPS
Query type that queries for users and groups
|
static java.lang.String |
USERLABEL_COMMONNAME
A predefined, yet optional labeled name denoting a display name for the user that is easy on the eye
|
Modifier and Type | Method and Description |
---|---|
void |
addAuthenticationSourceListener(AuthenticationSourceListener listener)
Method to add a listener to authentication source events.
|
void |
clearCache()
Called to notify the module to drop authentication caches (if it uses them)
|
void |
destroy()
Called when an auth module is no longer needed.
|
java.lang.Class<?>[] |
getAllowedCredentialClasses()
Returns the classes that are allowed as credentials for this module
|
java.lang.String |
getAuthenticationSource()
Descriptive string representation of the used authentication source
|
java.lang.String |
getEMailAddress(java.lang.String user)
Tries to retrieve the E-Mail-Address of the given user.
|
void |
init(java.util.Map<java.lang.String,java.lang.String> params,
WGDatabase db)
Called when the Authentication module is created, providing additional information
|
boolean |
isGeneratesSessionToken()
Determines if this auth module can create a session token that can be used for some kind of
single sign-on architecture.
|
boolean |
isQueryable(java.lang.String queryType)
Determines, if this auth module supports queries of the given query type.
|
AuthenticationSession |
login(java.lang.String user,
java.lang.Object credentials)
Called to verify a login.
|
java.lang.Object |
query(java.lang.Object query,
java.lang.String queryType)
executes a query for authentication objects (users, groups etc.) and returns the result.
|
void |
removeAuthenticationSourceListener(AuthenticationSourceListener listener)
Removes an authentication source listener from the list of listeners
|
static final java.lang.String QUERY_USERS_AND_GROUPS
static final java.lang.String QUERY_USER_DN
static final java.lang.String USERLABEL_COMMONNAME
void init(java.util.Map<java.lang.String,java.lang.String> params, WGDatabase db) throws ConfigurationException
params
- Configuration parameters for the moduledb
- The db that this module is bound toConfigurationException
AuthenticationSession login(java.lang.String user, java.lang.Object credentials) throws AuthenticationException
user
- The usercredentials
- The users credentials, f.e. a passwordAuthenticationException
- If the login cannot be verifiedjava.lang.String getEMailAddress(java.lang.String user)
user
- The uservoid clearCache()
java.lang.String getAuthenticationSource()
boolean isGeneratesSessionToken()
void addAuthenticationSourceListener(AuthenticationSourceListener listener)
void removeAuthenticationSourceListener(AuthenticationSourceListener listener)
java.lang.Class<?>[] getAllowedCredentialClasses()
boolean isQueryable(java.lang.String queryType)
java.lang.Object query(java.lang.Object query, java.lang.String queryType) throws WGQueryException
List
of UserGroupInfo
objects,
so the result can be processed in a platform independent manner.
Use constants QUERY_... to specify query type.WGQueryException
void destroy()