Class BasicAuthenticator
- java.lang.Object
-
- org.infinispan.rest.authentication.impl.BasicAuthenticator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Authenticator
public class BasicAuthenticator extends Object implements Authenticator
BASIC authentication mechanism.- Author:
- Tristan Tarrant, Sebastian Ćaskawiec
-
-
Constructor Summary
Constructors Constructor Description BasicAuthenticator(SecurityDomain domain, String realm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<RestResponse>challenge(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, wait
-
Methods inherited from interface org.infinispan.rest.authentication.Authenticator
close, isReadyForHttpChallenge
-
-
-
-
Constructor Detail
-
BasicAuthenticator
public BasicAuthenticator(SecurityDomain domain, String realm)
-
-
Method Detail
-
challenge
public CompletionStage<RestResponse> challenge(RestRequest request, io.netty.channel.ChannelHandlerContext ctx)
Description copied from interface:AuthenticatorChallenges specificRestRequestfor authentication.- Specified by:
challengein interfaceAuthenticator- Parameters:
request- Request to be challenged.- Returns:
- a
RestResponsewrapped in aCompletionStage
-
init
public void init(RestServer restServer)
Description copied from interface:AuthenticatorInvoked by theRestServeron startup. Can perform additional configuration- Specified by:
initin interfaceAuthenticator
-
-