Class DefaultLoginService
- java.lang.Object
-
- org.apache.archiva.redback.rest.services.DefaultLoginService
-
- All Implemented Interfaces:
LoginService
@Deprecated @Service("loginService#rest") public class DefaultLoginService extends Object implements LoginService
Deprecated.You should use new REST API versionAuthenticationService
- Since:
- 1.3
- Author:
- Olivier Lamy
-
-
Constructor Summary
Constructors Constructor Description DefaultLoginService(SecuritySystem securitySystem, HttpAuthenticator httpAuthenticator)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
addAuthenticationKey(String providedKey, String principal, String purpose, int expirationMinutes)
Deprecated.User
isLogged()
Deprecated.simply check if current user has an http session opened with authz passed and return user dataUser
logIn(LoginRequest loginRequest)
Deprecated.check username/password and create a http session.ActionStatus
logout()
Deprecated.clear user http sessionBoolean
ping()
Deprecated.Boolean
pingWithAutz()
Deprecated.
-
-
-
Constructor Detail
-
DefaultLoginService
@Inject public DefaultLoginService(SecuritySystem securitySystem, @Named("httpAuthenticator#basic") HttpAuthenticator httpAuthenticator)
Deprecated.
-
-
Method Detail
-
addAuthenticationKey
public String addAuthenticationKey(String providedKey, String principal, String purpose, int expirationMinutes) throws RedbackServiceException
Deprecated.- Specified by:
addAuthenticationKey
in interfaceLoginService
- Throws:
RedbackServiceException
-
ping
public Boolean ping() throws RedbackServiceException
Deprecated.- Specified by:
ping
in interfaceLoginService
- Throws:
RedbackServiceException
-
pingWithAutz
public Boolean pingWithAutz() throws RedbackServiceException
Deprecated.- Specified by:
pingWithAutz
in interfaceLoginService
- Throws:
RedbackServiceException
-
logIn
public User logIn(LoginRequest loginRequest) throws RedbackServiceException
Deprecated.Description copied from interface:LoginService
check username/password and create a http session. So no more need of reuse username/password for all ajaxRequest- Specified by:
logIn
in interfaceLoginService
- Throws:
RedbackServiceException
-
isLogged
public User isLogged() throws RedbackServiceException
Deprecated.Description copied from interface:LoginService
simply check if current user has an http session opened with authz passed and return user data- Specified by:
isLogged
in interfaceLoginService
- Throws:
RedbackServiceException
-
logout
public ActionStatus logout() throws RedbackServiceException
Deprecated.Description copied from interface:LoginService
clear user http session- Specified by:
logout
in interfaceLoginService
- Throws:
RedbackServiceException
-
-