Class KerberosLoginProvider


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

      • KerberosLoginProvider

        public KerberosLoginProvider​(org.apache.flink.configuration.Configuration configuration)
    • Method Detail

      • 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