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 StringaddAuthenticationKey(String providedKey, String principal, String purpose, int expirationMinutes)Deprecated.UserisLogged()Deprecated.simply check if current user has an http session opened with authz passed and return user dataUserlogIn(LoginRequest loginRequest)Deprecated.check username/password and create a http session.ActionStatuslogout()Deprecated.clear user http sessionBooleanping()Deprecated.BooleanpingWithAutz()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:
addAuthenticationKeyin interfaceLoginService- Throws:
RedbackServiceException
-
ping
public Boolean ping() throws RedbackServiceException
Deprecated.- Specified by:
pingin interfaceLoginService- Throws:
RedbackServiceException
-
pingWithAutz
public Boolean pingWithAutz() throws RedbackServiceException
Deprecated.- Specified by:
pingWithAutzin interfaceLoginService- Throws:
RedbackServiceException
-
logIn
public User logIn(LoginRequest loginRequest) throws RedbackServiceException
Deprecated.Description copied from interface:LoginServicecheck username/password and create a http session. So no more need of reuse username/password for all ajaxRequest- Specified by:
logInin interfaceLoginService- Throws:
RedbackServiceException
-
isLogged
public User isLogged() throws RedbackServiceException
Deprecated.Description copied from interface:LoginServicesimply check if current user has an http session opened with authz passed and return user data- Specified by:
isLoggedin interfaceLoginService- Throws:
RedbackServiceException
-
logout
public ActionStatus logout() throws RedbackServiceException
Deprecated.Description copied from interface:LoginServiceclear user http session- Specified by:
logoutin interfaceLoginService- Throws:
RedbackServiceException
-
-