Package org.takes.facets.auth
Class PsCookie
- java.lang.Object
-
- org.takes.facets.auth.PsCookie
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Opt<Identity>
enter(Request req)
Authenticate the user by the request.Response
exit(Response res, Identity idt)
Wrap the response with the user.
-
-
-
Constructor Detail
-
PsCookie
public PsCookie(Codec cdc)
Ctor.- Parameters:
cdc
- Codec
-
-
Method Detail
-
enter
public Opt<Identity> enter(Request req) throws IOException
Description copied from interface:Pass
Authenticate the user by the request.- Specified by:
enter
in interfacePass
- Parameters:
req
- The request- Returns:
- Identity of the user found
- Throws:
IOException
-
exit
public Response exit(Response res, Identity idt) throws IOException
Description copied from interface:Pass
Wrap the response with the user.- Specified by:
exit
in interfacePass
- Parameters:
res
- Responseidt
- Identity- Returns:
- New response
- Throws:
IOException
-
-