Class KerberosLoginProvider
java.lang.Object
org.apache.flink.runtime.security.token.hadoop.KerberosLoginProvider
Provides Kerberos login functionality.
-
Constructor Summary
ConstructorsConstructorDescriptionKerberosLoginProvider(org.apache.flink.configuration.Configuration configuration) KerberosLoginProvider(SecurityConfiguration securityConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoLogin(boolean supportProxyUser) Does kerberos login and sets current user.org.apache.hadoop.security.UserGroupInformationDoes kerberos login and doesn't set current user, just returns a new UGI instance.booleanisLoginPossible(boolean supportProxyUser)
-
Constructor Details
-
KerberosLoginProvider
public KerberosLoginProvider(org.apache.flink.configuration.Configuration configuration) -
KerberosLoginProvider
-
-
Method Details
-
isLoginPossible
- Throws:
IOException
-
doLogin
Does kerberos login and sets current user. Must be called when isLoginPossible returns true.- Throws:
IOException
-
doLoginAndReturnUGI
Does kerberos login and doesn't set current user, just returns a new UGI instance. Must be called when isLoginPossible returns true.- Throws:
IOException
-