Constructor and Description |
---|
PsCookie(Codec cdc)
Ctor.
|
PsCookie(Codec cdc,
String name)
Ctor.
|
PsCookie(Codec cdc,
String name,
long days)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Opt<Identity> |
enter(Request req)
Authenticate the user by the request.
|
Response |
exit(Response res,
Identity idt)
Wrap the response with the user.
|
public PsCookie(Codec cdc)
cdc
- Codecpublic Opt<Identity> enter(Request req) throws IOException
Pass
enter
in interface Pass
req
- The requestIOException
- If failspublic Response exit(Response res, Identity idt) throws IOException
Pass
exit
in interface Pass
res
- Responseidt
- IdentityIOException
- If failsCopyright © 2015–2019 Take. All rights reserved.