public static String getAuthMethod(AlluxioConfiguration conf) throws AccessControlException {
    if (!SecurityUtils.isAuthenticationEnabled(conf)) {
      throw new AccessControlException(ExceptionMessage.AUTHENTICATION_IS_NOT_ENABLED.getMessage());
    }
    return sConnectionAuthMethod.get();
  }
public static String getAuthMethod ( AlluxioConfiguration conf ) throws AccessControlException { if ( ! SecurityUtils . isAuthenticationEnabled ( conf ) ) { throw new AccessControlException ( ExceptionMessage . AUTHENTICATION_IS_NOT_ENABLED . getMessage ( ) ) ; } return sConnectionAuthMethod . get ( ) ; }
Gets the connection authentication method from the {@link ThreadLocal} variable.

@param conf Alluxio configuration
@return the client user in string, null if the user is not present
@throws AccessControlException if the authentication is not enabled