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
    Modifier and Type
    Field
    Description
    static final String
    HTTP header prefix used by the MAPR client/server endpoints during an authentication sequence.
    static final String
    HTTP header used by the MAPR server endpoint during an authentication sequence in case of error
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    authenticate(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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • WWW_ERR_AUTHENTICATE

      public static final String WWW_ERR_AUTHENTICATE
      HTTP header used by the MAPR server endpoint during an authentication sequence in case of error
      See Also:
    • NEGOTIATE

      public static final String 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:
      authenticate in interface org.apache.hadoop.security.authentication.client.Authenticator
      Specified by:
      authenticate in class org.apache.hadoop.security.authentication.client.AbstractMaprAuthenticator
      Parameters:
      url - - Server url
      token - - Once authenticated this token can be used for future connections without having to go through the negotiation protocol
      Throws:
      IOException
      org.apache.hadoop.security.authentication.client.AuthenticationException
    • setConnectionConfigurator

      public void setConnectionConfigurator(org.apache.hadoop.security.authentication.client.ConnectionConfigurator configurator)
      Specified by:
      setConnectionConfigurator in interface org.apache.hadoop.security.authentication.client.Authenticator
      Specified by:
      setConnectionConfigurator in class org.apache.hadoop.security.authentication.client.AbstractMaprAuthenticator