public interface RememberMeService
Modifier and Type | Method and Description |
---|---|
ApplicationUser |
authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Attempts to authenticate a request using the remember-me cookie provided on the request.
|
void |
createCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Generates a new remember-me token for the user and sets the corresponding cookie on the response.
|
void |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Clears the remember-me cookie and removes all remember-me tokens for the corresponding series
|
@Nullable ApplicationUser authenticate(@Nonnull javax.servlet.http.HttpServletRequest request, @Nonnull javax.servlet.http.HttpServletResponse response)
request
- the requestresponse
- the responsenull
if authentication failed.void logout(@Nonnull javax.servlet.http.HttpServletRequest request, @Nonnull javax.servlet.http.HttpServletResponse response)
request
- the requestresponse
- the responsevoid createCookie(@Nonnull javax.servlet.http.HttpServletRequest request, @Nonnull javax.servlet.http.HttpServletResponse response)
AuthenticationContext
first.request
- the requestresponse
- the responseCopyright © 2021 Atlassian. All rights reserved.