Package org.apache.hadoop.security

Class KerberosAuthException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.security.KerberosAuthException
All Implemented Interfaces:
Serializable

@Public @Unstable public class KerberosAuthException extends IOException
Thrown when UserGroupInformation failed with an unrecoverable error, such as failure in kerberos login/logout, invalid subject etc. Caller should not retry when catching this exception.
See Also:
  • Constructor Details

    • KerberosAuthException

      public KerberosAuthException(String msg)
    • KerberosAuthException

      public KerberosAuthException(Throwable cause)
    • KerberosAuthException

      public KerberosAuthException(String initialMsg, Throwable cause)
  • Method Details

    • setUser

      public void setUser(String u)
    • setPrincipal

      public void setPrincipal(String p)
    • setKeytabFile

      public void setKeytabFile(String k)
    • setTicketCacheFile

      public void setTicketCacheFile(String t)
    • getInitialMessage

      public String getInitialMessage()
      Returns:
      The initial message, or null if not set.
    • getKeytabFile

      public String getKeytabFile()
      Returns:
      The keytab file path, or null if not set.
    • getPrincipal

      public String getPrincipal()
      Returns:
      The principal, or null if not set.
    • getTicketCacheFile

      public String getTicketCacheFile()
      Returns:
      The ticket cache file path, or null if not set.
    • getUser

      public String getUser()
      Returns:
      The user, or null if not set.
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable