Class BasicAuthenticator
java.lang.Object
org.infinispan.rest.authentication.impl.BasicAuthenticator
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Authenticator
BASIC authentication mechanism.
- Author:
- Tristan Tarrant, Sebastian Ćaskawiec
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchallenge
(RestRequest request, io.netty.channel.ChannelHandlerContext ctx) Challenges specificRestRequest
for authentication.void
init
(RestServer restServer) Invoked by theRestServer
on startup.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.rest.authentication.Authenticator
close, isReadyForHttpChallenge
-
Constructor Details
-
BasicAuthenticator
-
-
Method Details
-
challenge
public CompletionStage<RestResponse> challenge(RestRequest request, io.netty.channel.ChannelHandlerContext ctx) Description copied from interface:Authenticator
Challenges specificRestRequest
for authentication.- Specified by:
challenge
in interfaceAuthenticator
- Parameters:
request
- Request to be challenged.- Returns:
- a
RestResponse
wrapped in aCompletionStage
-
init
Description copied from interface:Authenticator
Invoked by theRestServer
on startup. Can perform additional configuration- Specified by:
init
in interfaceAuthenticator
-