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
Exception
public UserInformation getUser(String user)
AuthenticationService
getUser
in interface AuthenticationService
user
- the user to get the information fornull
if the user is unknownpublic UserInformation authenticate(CredentialsRequest credentialsRequest) throws AuthenticationException
AuthenticationService
authenticate
in interface AuthenticationService
null
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 AuthenticationService
protected UserInformation makeInfo(String name, AbstractPlainAuthenticationService.UserEntry user)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.