public abstract class AbstractPlainAuthenticationService extends java.lang.Object implements AuthenticationService
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractPlainAuthenticationService.UserEntry |
| Constructor and Description |
|---|
AbstractPlainAuthenticationService() |
| Modifier and Type | Method and Description |
|---|---|
UserInformation |
authenticate(CredentialsRequest credentialsRequest)
Authenticate a user based on credentials
|
UserInformation |
getUser(java.lang.String user)
The the user information of the named user
|
protected abstract AbstractPlainAuthenticationService.UserEntry |
getUserEntry(java.lang.String name) |
void |
joinRequest(CredentialsRequest request) |
protected UserInformation |
makeInfo(java.lang.String name,
AbstractPlainAuthenticationService.UserEntry user) |
protected abstract AbstractPlainAuthenticationService.UserEntry getUserEntry(java.lang.String name) throws java.lang.Exception
java.lang.Exceptionpublic UserInformation getUser(java.lang.String user)
AuthenticationServicegetUser in interface AuthenticationServiceuser - the user to get the information fornull if the user is unknownpublic UserInformation authenticate(CredentialsRequest credentialsRequest) throws AuthenticationException
AuthenticationServiceauthenticate in interface AuthenticationServicenull if it is a valid anonymous login.AuthenticationException - in the case the login is invalid (e.g. username and
password don't match)public void joinRequest(CredentialsRequest request)
joinRequest in interface AuthenticationServiceprotected UserInformation makeInfo(java.lang.String name, AbstractPlainAuthenticationService.UserEntry user)
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0