public interface Pass
All implementations of this interface must be immutable and thread-safe.
Modifier and Type | Method and Description |
---|---|
Opt<Identity> |
enter(Request request)
Authenticate the user by the request.
|
Response |
exit(Response response,
Identity identity)
Wrap the response with the user.
|
Opt<Identity> enter(Request request) throws IOException
request
- The requestIOException
- If failsResponse exit(Response response, Identity identity) throws IOException
response
- Responseidentity
- IdentityIOException
- If failsCopyright © 2015–2018 Take. All rights reserved.