public class Authentication extends java.lang.Object implements IInCoreAuthentication
Constructor and Description |
---|
Authentication(BmContext context,
java.util.List<IAuthProvider> authProviders,
java.util.List<ILoginValidationListener> loginListeners,
java.util.List<ILoginSessionValidator> sessionValidators) |
Modifier and Type | Method and Description |
---|---|
SecurityContext |
buildContext(java.lang.String sid,
java.lang.String origin,
java.lang.String domainUid,
java.lang.String userUid) |
AuthUser |
getCurrentUser() |
LoginResponse |
login(java.lang.String login,
java.lang.String password,
java.lang.String origin)
Try to log in user into Blue-Mind and create valid session on success
|
LoginResponse |
loginWithParams(java.lang.String login,
java.lang.String password,
java.lang.String origin,
java.lang.Boolean interactive)
Try to log in user into Blue-Mind and create valid session on success
|
void |
logout()
Close a Blue-Mind session
|
void |
ping()
This method is empty as
Sessions.sessionContext(String) is called
from the rest layer. |
void |
resetTokens()
Delete all stored tokens
|
LoginResponse |
su(java.lang.String login)
Create Blue-Mind access token for requested user.
This token can be used for authenticate against Blue-Mind components |
LoginResponse |
suWithParams(java.lang.String login,
java.lang.Boolean inter) |
ValidationKind |
validate(java.lang.String login,
java.lang.String password,
java.lang.String origin)
Validate credential
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildContext, buildContext
public Authentication(BmContext context, java.util.List<IAuthProvider> authProviders, java.util.List<ILoginValidationListener> loginListeners, java.util.List<ILoginSessionValidator> sessionValidators) throws ServerFault
ServerFault
public LoginResponse login(java.lang.String login, java.lang.String password, java.lang.String origin) throws ServerFault
IAuthentication
login
in interface IAuthentication
password
- user passwordorigin
- Blue Mind application from which user try to log inLoginResponse
ServerFault
public LoginResponse loginWithParams(java.lang.String login, java.lang.String password, java.lang.String origin, java.lang.Boolean interactive) throws ServerFault
IAuthentication
loginWithParams
in interface IAuthentication
password
- user passwordorigin
- Blue Mind application from which user try to log ininteractive
- interactiveLoginResponse
ServerFault
public void logout() throws ServerFault
IAuthentication
logout
in interface IAuthentication
ServerFault
public LoginResponse su(java.lang.String login) throws ServerFault
IAuthentication
Only token from global domain are allowed to do this.
su
in interface IAuthentication
login
- requested login@domain access tokenLoginResponse
ServerFault
public LoginResponse suWithParams(java.lang.String login, java.lang.Boolean inter) throws ServerFault
suWithParams
in interface IAuthentication
ServerFault
public AuthUser getCurrentUser() throws ServerFault
getCurrentUser
in interface IAuthentication
ServerFault
public void ping() throws ServerFault
Sessions.sessionContext(String)
is called
from the rest layer.ping
in interface IAuthentication
ServerFault
IAuthentication.ping()
public SecurityContext buildContext(java.lang.String sid, java.lang.String origin, java.lang.String domainUid, java.lang.String userUid) throws ServerFault
buildContext
in interface IInCoreAuthentication
ServerFault
public ValidationKind validate(java.lang.String login, java.lang.String password, java.lang.String origin) throws ServerFault
IAuthentication
validate
in interface IAuthentication
password
- user passwordorigin
- Blue Mind application from which user try to log inLoginResponse
ServerFault
public void resetTokens()
IInCoreAuthentication
resetTokens
in interface IInCoreAuthentication
Copyright © 2021. All Rights Reserved.