@Singleton public class SessionLoginHandler extends Object implements LoginHandler
LoginHandler
implementation for Session-based Authentication.Modifier and Type | Field and Description |
---|---|
protected SecuritySessionConfiguration |
securitySessionConfiguration |
protected SessionStore<Session> |
sessionStore |
Constructor and Description |
---|
SessionLoginHandler(SecuritySessionConfiguration securitySessionConfiguration,
SessionStore<Session> sessionStore)
|
SessionLoginHandler(SecuritySessionConfiguration securitySessionConfiguration,
SessionStore<Session> sessionStore,
TokenConfiguration tokenConfiguration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
loginFailed(AuthenticationFailed authenticationFailed) |
HttpResponse |
loginSuccess(UserDetails userDetails,
HttpRequest<?> request) |
protected final SessionStore<Session> sessionStore
protected final SecuritySessionConfiguration securitySessionConfiguration
@Deprecated public SessionLoginHandler(SecuritySessionConfiguration securitySessionConfiguration, SessionStore<Session> sessionStore)
securitySessionConfiguration
- Security Session ConfigurationsessionStore
- The session store@Inject public SessionLoginHandler(SecuritySessionConfiguration securitySessionConfiguration, SessionStore<Session> sessionStore, TokenConfiguration tokenConfiguration)
securitySessionConfiguration
- Security Session ConfigurationsessionStore
- The session storetokenConfiguration
- Token Configurationpublic HttpResponse loginSuccess(UserDetails userDetails, HttpRequest<?> request)
loginSuccess
in interface LoginHandler
userDetails
- Authenticated user's representation.request
- The HttpRequest
being executedpublic HttpResponse loginFailed(AuthenticationFailed authenticationFailed)
loginFailed
in interface LoginHandler
authenticationFailed
- Object encapsulates the Login failure