Class KerberosLoginProvider
- java.lang.Object
-
- org.apache.flink.runtime.security.token.hadoop.KerberosLoginProvider
-
@Internal public class KerberosLoginProvider extends Object
Provides Kerberos login functionality.
-
-
Constructor Summary
Constructors Constructor Description KerberosLoginProvider(org.apache.flink.configuration.Configuration configuration)KerberosLoginProvider(SecurityConfiguration securityConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoLogin(boolean supportProxyUser)Does kerberos login and sets current user.org.apache.hadoop.security.UserGroupInformationdoLoginAndReturnUGI()Does kerberos login and doesn't set current user, just returns a new UGI instance.booleanisLoginPossible(boolean supportProxyUser)
-
-
-
Constructor Detail
-
KerberosLoginProvider
public KerberosLoginProvider(org.apache.flink.configuration.Configuration configuration)
-
KerberosLoginProvider
public KerberosLoginProvider(SecurityConfiguration securityConfiguration)
-
-
Method Detail
-
isLoginPossible
public boolean isLoginPossible(boolean supportProxyUser) throws IOException- Throws:
IOException
-
doLogin
public void doLogin(boolean supportProxyUser) throws IOExceptionDoes kerberos login and sets current user. Must be called when isLoginPossible returns true.- Throws:
IOException
-
doLoginAndReturnUGI
public org.apache.hadoop.security.UserGroupInformation doLoginAndReturnUGI() throws IOExceptionDoes kerberos login and doesn't set current user, just returns a new UGI instance. Must be called when isLoginPossible returns true.- Throws:
IOException
-
-