Class RestLoginSuccessHandler
- java.lang.Object
-
- org.craftercms.security.utils.handlers.AbstractRestHandlerBase
-
- org.craftercms.security.authentication.impl.RestLoginSuccessHandler
-
- All Implemented Interfaces:
LoginSuccessHandler
public class RestLoginSuccessHandler extends AbstractRestHandlerBase implements LoginSuccessHandler
Implementation ofLoginSuccessHandler
for REST based applications, which returns theAuthentication
object as the response body.- Author:
- avasquez
-
-
Field Summary
-
Fields inherited from class org.craftercms.security.utils.handlers.AbstractRestHandlerBase
responseWriter
-
-
Constructor Summary
Constructors Constructor Description RestLoginSuccessHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
-
-
-
Method Detail
-
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
-
-