Package org.takes.facets.auth
Class PsBasic
- java.lang.Object
-
- org.takes.facets.auth.PsBasic
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PsBasic.Default
Default entry.static class
PsBasic.Empty
Empty check.static interface
PsBasic.Entry
Entry interface that is used to check if the received information is valid.static class
PsBasic.Fake
Fake implementation ofPsBasic.Entry
.
-
Constructor Summary
Constructors Constructor Description PsBasic(String rlm, PsBasic.Entry basic)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Opt<Identity>
enter(Request request)
Authenticate the user by the request.Response
exit(Response response, Identity identity)
Wrap the response with the user.
-
-
-
Constructor Detail
-
PsBasic
public PsBasic(String rlm, PsBasic.Entry basic)
Ctor.- Parameters:
rlm
- Realmbasic
- Entry
-
-
Method Detail
-
enter
public Opt<Identity> enter(Request request) throws IOException
Description copied from interface:Pass
Authenticate the user by the request.- Specified by:
enter
in interfacePass
- Parameters:
request
- The request- Returns:
- Identity of the user found
- Throws:
IOException
-
-