Modifier and Type | Class and Description |
---|---|
static class |
PsByFlag.Pair
Pair of values.
|
Constructor and Description |
---|
PsByFlag(Map<Pattern,Pass> map)
Ctor.
|
PsByFlag(PsByFlag.Pair... pairs)
Ctor.
|
PsByFlag(String flg,
Map<Pattern,Pass> map)
Ctor.
|
PsByFlag(String flg,
PsByFlag.Pair... pairs)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Opt<Identity> |
enter(Request req)
Authenticate the user by the request.
|
Response |
exit(Response response,
Identity identity)
Wrap the response with the user.
|
public PsByFlag(PsByFlag.Pair... pairs)
pairs
- Map entriespublic PsByFlag(String flg, PsByFlag.Pair... pairs)
flg
- Flagpairs
- Map entriespublic Opt<Identity> enter(Request req) throws IOException
Pass
enter
in interface Pass
req
- The requestIOException
- If failsCopyright © 2015–2018 Take. All rights reserved.