Class MaprAuthMethod


  • public final class MaprAuthMethod
    extends org.apache.hadoop.security.rpcauth.RpcAuthMethod
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.apache.commons.logging.Log LOG  
      • Fields inherited from class org.apache.hadoop.security.rpcauth.RpcAuthMethod

        authcode, authenticationMethod, mechanismName, simpleName
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.security.auth.callback.CallbackHandler createCallbackHandler()  
      javax.security.sasl.SaslClient createSaslClient​(java.util.Map<java.lang.String,​java.lang.Object> saslProperties)  
      javax.security.sasl.SaslServer createSaslServer​(org.apache.hadoop.ipc.Server.Connection connection, java.util.Map<java.lang.String,​java.lang.Object> saslProperties)  
      java.lang.String getProtocol()  
      java.lang.String getServerId()  
      org.apache.hadoop.security.UserGroupInformation getUser​(org.apache.hadoop.security.UserGroupInformation ticket)  
      boolean isNegotiable()  
      boolean isSasl()  
      java.lang.String[] loginModules()  
      void writeUGI​(org.apache.hadoop.security.UserGroupInformation ugi, org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.Builder ugiProto)  
      • Methods inherited from class org.apache.hadoop.security.rpcauth.RpcAuthMethod

        equals, getAuthCode, getAuthenticationMethod, getAuthorizedUgi, getMechanismName, hashCode, isProxyAllowed, reLogin, shouldReLogin, toString, write
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • LOG

        public static final org.apache.commons.logging.Log LOG
    • Method Detail

      • loginModules

        public java.lang.String[] loginModules()
        Overrides:
        loginModules in class org.apache.hadoop.security.rpcauth.RpcAuthMethod
      • getUser

        public org.apache.hadoop.security.UserGroupInformation getUser​(org.apache.hadoop.security.UserGroupInformation ticket)
        Overrides:
        getUser in class org.apache.hadoop.security.rpcauth.RpcAuthMethod
      • writeUGI

        public void writeUGI​(org.apache.hadoop.security.UserGroupInformation ugi,
                             org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.Builder ugiProto)
        Overrides:
        writeUGI in class org.apache.hadoop.security.rpcauth.RpcAuthMethod
      • isSasl

        public boolean isSasl()
        Overrides:
        isSasl in class org.apache.hadoop.security.rpcauth.RpcAuthMethod
      • isNegotiable

        public boolean isNegotiable()
        Overrides:
        isNegotiable in class org.apache.hadoop.security.rpcauth.RpcAuthMethod
      • getProtocol

        public java.lang.String getProtocol()
                                     throws java.io.IOException
        Overrides:
        getProtocol in class org.apache.hadoop.security.rpcauth.RpcAuthMethod
        Throws:
        java.io.IOException
      • getServerId

        public java.lang.String getServerId()
                                     throws java.io.IOException
        Overrides:
        getServerId in class org.apache.hadoop.security.rpcauth.RpcAuthMethod
        Throws:
        java.io.IOException
      • createSaslClient

        public javax.security.sasl.SaslClient createSaslClient​(java.util.Map<java.lang.String,​java.lang.Object> saslProperties)
                                                        throws java.io.IOException
        Overrides:
        createSaslClient in class org.apache.hadoop.security.rpcauth.RpcAuthMethod
        Throws:
        java.io.IOException
      • createSaslServer

        public javax.security.sasl.SaslServer createSaslServer​(org.apache.hadoop.ipc.Server.Connection connection,
                                                               java.util.Map<java.lang.String,​java.lang.Object> saslProperties)
                                                        throws java.io.IOException,
                                                               java.lang.InterruptedException
        Overrides:
        createSaslServer in class org.apache.hadoop.security.rpcauth.RpcAuthMethod
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • createCallbackHandler

        public javax.security.auth.callback.CallbackHandler createCallbackHandler()
        Overrides:
        createCallbackHandler in class org.apache.hadoop.security.rpcauth.RpcAuthMethod