Class RestLoginSuccessHandler
java.lang.Object
org.craftercms.security.utils.handlers.AbstractRestHandlerBase
org.craftercms.security.authentication.impl.RestLoginSuccessHandler
- All Implemented Interfaces:
LoginSuccessHandler
Implementation of
LoginSuccessHandler
for REST based applications,
which returns the Authentication
object as the response body.- Author:
- avasquez
-
Field Summary
Fields inherited from class org.craftercms.security.utils.handlers.AbstractRestHandlerBase
responseWriter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(org.craftercms.commons.http.RequestContext context, Authentication authentication) Handles the request after a successful authentication.Methods inherited from class org.craftercms.security.utils.handlers.AbstractRestHandlerBase
sendErrorMessage, sendMessage, sendObject, setResponseWriter
-
Constructor Details
-
RestLoginSuccessHandler
public RestLoginSuccessHandler()
-
-
Method Details
-
handle
public void handle(org.craftercms.commons.http.RequestContext context, Authentication authentication) throws SecurityProviderException, IOException Description copied from interface:LoginSuccessHandler
Handles the request after a successful authentication.- Specified by:
handle
in interfaceLoginSuccessHandler
- Parameters:
context
- the request contextauthentication
- the authentication object- Throws:
SecurityProviderException
IOException
-