public class AdminAuthAPIImpl extends net.anotheria.anoplass.api.AbstractAPIImpl implements AdminAuthAPI
| Constructor and Description |
|---|
AdminAuthAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
authenticateByToken(java.lang.String authToken)
Authenticates user by token.
|
void |
init() |
java.lang.String |
login(java.lang.String login,
java.lang.String password)
Used to initially log in user in admin-API.
|
void |
logout()
Logouts user from admin-API.
|
protected void |
setTokens(java.util.List<AuthTokenAO> tokens) |
addValidationError, addValidationError, checkValidationAndThrowException, deInit, getApiConfig, getAttributeFromSession, getCallContext, getCurrentLocale, getCurrentUserId, getDefaultExpirePeriodForAttribute, getExpirePeriodForAttribute, getLoggedInUserId, getPrivateAttributeName, getSession, removeAttributeFromSession, setAttributeInSession, setAttributeInSession, setAttributeInSession, setAttributeInSessionpublic void init()
throws net.anotheria.anoplass.api.APIInitException
init in interface net.anotheria.anoplass.api.APIinit in class net.anotheria.anoplass.api.AbstractAPIImplnet.anotheria.anoplass.api.APIInitExceptionpublic java.lang.String authenticateByToken(java.lang.String authToken)
throws AdminAPIAuthenticationException
AdminAuthAPIauthenticateByToken in interface AdminAuthAPIauthToken - token to verifyAdminAPIAuthenticationException - in case of invalid tokenpublic java.lang.String login(java.lang.String login,
java.lang.String password)
throws AdminAPIAuthenticationException
AdminAuthAPIlogin in interface AdminAuthAPIlogin - loginpassword - passwordAdminAPIAuthenticationException - in case of invalid credentialspublic void logout()
AdminAuthAPIlogout in interface AdminAuthAPIprotected void setTokens(java.util.List<AuthTokenAO> tokens)
Copyright © 2012-2023 anotheria.net. All Rights Reserved.