Package com.linkedin.venice.hadoop.ssl
Class UserCredentialsFactory
- java.lang.Object
-
- com.linkedin.venice.hadoop.ssl.UserCredentialsFactory
-
public class UserCredentialsFactory extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
REQUIRED_SECRET_KEY_COUNT
-
Constructor Summary
Constructors Constructor Description UserCredentialsFactory()
-
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
-
-
-
Field Detail
-
REQUIRED_SECRET_KEY_COUNT
public static final int REQUIRED_SECRET_KEY_COUNT
- See Also:
- Constant Field Values
-
-
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
-
-