Class BasicAuthenticator
java.lang.Object
org.infinispan.rest.authentication.impl.BasicAuthenticator
- All Implemented Interfaces:
Closeable,AutoCloseable,RestAuthenticator
BASIC authentication mechanism.
- Author:
- Tristan Tarrant, Sebastian Łaskawiec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchallenge(RestRequest request, io.netty.channel.ChannelHandlerContext ctx) Challenges specificRestRequestfor authentication.voidinit(RestServer restServer) Invoked by theRestServeron startup.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.rest.authentication.RestAuthenticator
close, isReadyForHttpChallenge
-
Constructor Details
-
BasicAuthenticator
-
-
Method Details
-
challenge
public CompletionStage<RestResponse> challenge(RestRequest request, io.netty.channel.ChannelHandlerContext ctx) Description copied from interface:RestAuthenticatorChallenges specificRestRequestfor authentication.- Specified by:
challengein interfaceRestAuthenticator- Parameters:
request- Request to be challenged.- Returns:
- a
RestResponsewrapped in aCompletionStage
-
init
Description copied from interface:RestAuthenticatorInvoked by theRestServeron startup. Can perform additional configuration- Specified by:
initin interfaceRestAuthenticator- Parameters:
restServer-
-