Class UserCredentialsFactory


  • public class UserCredentialsFactory
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.hadoop.security.Credentials getHadoopUserCredentials()
      Get user's credentials from the current Hadoop user group context.
      static org.apache.hadoop.security.Credentials getUserCredentialsFromTokenFile()
      Get user's credentials from the the Hadoop token file
      • Methods inherited from class java.lang.Object

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

      • REQUIRED_SECRET_KEY_COUNT

        public static final int REQUIRED_SECRET_KEY_COUNT
        See Also:
        Constant Field Values
    • Constructor Detail

      • UserCredentialsFactory

        public UserCredentialsFactory()
    • Method Detail

      • getHadoopUserCredentials

        public static org.apache.hadoop.security.Credentials getHadoopUserCredentials()
                                                                               throws java.io.IOException
        Get user's credentials from the current Hadoop user group context.
        Throws:
        java.io.IOException
      • getUserCredentialsFromTokenFile

        public static org.apache.hadoop.security.Credentials getUserCredentialsFromTokenFile()
                                                                                      throws java.io.IOException
        Get user's credentials from the the Hadoop token file
        Throws:
        java.io.IOException