Package org.apache.flink.runtime.hadoop
Class HadoopUserUtils
- java.lang.Object
-
- org.apache.flink.runtime.hadoop.HadoopUserUtils
-
public class HadoopUserUtils extends Object
Utility class for working with Hadoop user related classes. This should only be used if Hadoop is on the classpath.
-
-
Constructor Summary
Constructors Constructor Description HadoopUserUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longgetIssueDate(java.time.Clock clock, String tokenKind, org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier identifier)static booleanhasUserKerberosAuthMethod(org.apache.hadoop.security.UserGroupInformation ugi)static booleanisProxyUser(org.apache.hadoop.security.UserGroupInformation ugi)
-
-
-
Method Detail
-
isProxyUser
public static boolean isProxyUser(org.apache.hadoop.security.UserGroupInformation ugi)
-
hasUserKerberosAuthMethod
public static boolean hasUserKerberosAuthMethod(org.apache.hadoop.security.UserGroupInformation ugi)
-
getIssueDate
public static long getIssueDate(java.time.Clock clock, String tokenKind, org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier identifier)
-
-