Class KerberosLoginProvider

java.lang.Object
org.apache.flink.runtime.security.token.hadoop.KerberosLoginProvider

@Internal public class KerberosLoginProvider extends Object
Provides Kerberos login functionality.
  • Constructor Details

    • KerberosLoginProvider

      public KerberosLoginProvider(org.apache.flink.configuration.Configuration configuration)
    • KerberosLoginProvider

      public KerberosLoginProvider(SecurityConfiguration securityConfiguration)
  • Method Details

    • isLoginPossible

      public boolean isLoginPossible(boolean supportProxyUser) throws IOException
      Throws:
      IOException
    • doLogin

      public void doLogin(boolean supportProxyUser) throws IOException
      Does kerberos login and sets current user. Must be called when isLoginPossible returns true.
      Throws:
      IOException
    • doLoginAndReturnUGI

      public org.apache.hadoop.security.UserGroupInformation doLoginAndReturnUGI() throws IOException
      Does kerberos login and doesn't set current user, just returns a new UGI instance. Must be called when isLoginPossible returns true.
      Throws:
      IOException