public class MaprAuthenticator
extends java.lang.Object
implements org.apache.hadoop.security.authentication.client.Authenticator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NEGOTIATE
HTTP header prefix used by the MAPR client/server endpoints during an authentication sequence.
|
static java.lang.String |
WWW_ERR_AUTHENTICATE
HTTP header used by the MAPR server endpoint during an authentication sequence in case of error
|
| Constructor and Description |
|---|
MaprAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(java.net.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 PseudoAuthenticator
|
void |
setConnectionConfigurator(org.apache.hadoop.security.authentication.client.ConnectionConfigurator configurator) |
public static final java.lang.String WWW_ERR_AUTHENTICATE
public static final java.lang.String NEGOTIATE
public void authenticate(java.net.URL url,
org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token token)
throws java.io.IOException,
org.apache.hadoop.security.authentication.client.AuthenticationException
authenticate in interface org.apache.hadoop.security.authentication.client.Authenticatorurl - - Server urltoken - - Once authenticated this token can be used for future connections without
having to go through the negotiation protocoljava.io.IOExceptionorg.apache.hadoop.security.authentication.client.AuthenticationExceptionpublic void setConnectionConfigurator(org.apache.hadoop.security.authentication.client.ConnectionConfigurator configurator)
setConnectionConfigurator in interface org.apache.hadoop.security.authentication.client.Authenticator