public abstract class AbstractPlainAuthenticationService extends 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(String user)
The the user information of the named user
|
protected abstract AbstractPlainAuthenticationService.UserEntry |
getUserEntry(String name) |
void |
joinRequest(CredentialsRequest request) |
protected UserInformation |
makeInfo(String name,
AbstractPlainAuthenticationService.UserEntry user) |
protected abstract AbstractPlainAuthenticationService.UserEntry getUserEntry(String name) throws Exception
Exceptionpublic UserInformation getUser(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(String name, AbstractPlainAuthenticationService.UserEntry user)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.