Package com.mapr.security.maprauth
Class MaprAuthenticator
java.lang.Object
org.apache.hadoop.security.authentication.client.AbstractMaprAuthenticator
com.mapr.security.maprauth.MaprAuthenticator
- All Implemented Interfaces:
org.apache.hadoop.security.authentication.client.Authenticator
public class MaprAuthenticator
extends org.apache.hadoop.security.authentication.client.AbstractMaprAuthenticator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(URL url, org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token token) authenticate function is invoked when the client tries to open a HTTP connection with the server Based on the header returned by the server we will either do a Mapr handshake or simply fallback to the PseudoAuthenticatorvoidsetConnectionConfigurator(org.apache.hadoop.security.authentication.client.ConnectionConfigurator configurator)
-
Field Details
-
WWW_ERR_AUTHENTICATE
HTTP header used by the MAPR server endpoint during an authentication sequence in case of error- See Also:
-
NEGOTIATE
HTTP header prefix used by the MAPR client/server endpoints during an authentication sequence.- See Also:
-
-
Constructor Details
-
MaprAuthenticator
public MaprAuthenticator()
-
-
Method Details
-
authenticate
public void authenticate(URL url, org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token token) throws IOException, org.apache.hadoop.security.authentication.client.AuthenticationException authenticate function is invoked when the client tries to open a HTTP connection with the server Based on the header returned by the server we will either do a Mapr handshake or simply fallback to the PseudoAuthenticator- Specified by:
authenticatein interfaceorg.apache.hadoop.security.authentication.client.Authenticator- Specified by:
authenticatein classorg.apache.hadoop.security.authentication.client.AbstractMaprAuthenticator- Parameters:
url- - Server urltoken- - Once authenticated this token can be used for future connections without having to go through the negotiation protocol- Throws:
IOExceptionorg.apache.hadoop.security.authentication.client.AuthenticationException
-
setConnectionConfigurator
public void setConnectionConfigurator(org.apache.hadoop.security.authentication.client.ConnectionConfigurator configurator) - Specified by:
setConnectionConfiguratorin interfaceorg.apache.hadoop.security.authentication.client.Authenticator- Specified by:
setConnectionConfiguratorin classorg.apache.hadoop.security.authentication.client.AbstractMaprAuthenticator
-