@Singleton public class JwtCookieLoginHandler extends Object implements LoginHandler
| Modifier and Type | Field and Description |
|---|---|
protected AccessRefreshTokenGenerator |
accessRefreshTokenGenerator |
protected JwtCookieConfiguration |
jwtCookieConfiguration |
protected JwtGeneratorConfiguration |
jwtGeneratorConfiguration |
| Constructor and Description |
|---|
JwtCookieLoginHandler(JwtCookieConfiguration jwtCookieConfiguration,
JwtGeneratorConfiguration jwtGeneratorConfiguration,
AccessRefreshTokenGenerator accessRefreshTokenGenerator) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
loginFailed(AuthenticationFailed authenticationFailed) |
HttpResponse |
loginSuccess(UserDetails userDetails,
HttpRequest<?> request) |
protected final JwtCookieConfiguration jwtCookieConfiguration
protected final AccessRefreshTokenGenerator accessRefreshTokenGenerator
protected final JwtGeneratorConfiguration jwtGeneratorConfiguration
public JwtCookieLoginHandler(JwtCookieConfiguration jwtCookieConfiguration, JwtGeneratorConfiguration jwtGeneratorConfiguration, AccessRefreshTokenGenerator accessRefreshTokenGenerator)
jwtCookieConfiguration - JWT Cookie ConfigurationjwtGeneratorConfiguration - JWT Generator ConfigurationaccessRefreshTokenGenerator - Access Refresh Token Generatorpublic HttpResponse loginSuccess(UserDetails userDetails, HttpRequest<?> request)
loginSuccess in interface LoginHandleruserDetails - Authenticated user's representation.request - The HttpRequest being executedpublic HttpResponse loginFailed(AuthenticationFailed authenticationFailed)
loginFailed in interface LoginHandlerauthenticationFailed - Object encapsulates the Login failure