public class AuthenticationException extends ApiException
SaslAuthenticationException if SASL handshake fails with invalid credentials or any other failure specific to the SASL mechanism used for authenticationUnsupportedSaslMechanismException if the SASL mechanism requested by the client is not supported on the broker.IllegalSaslStateException if an unexpected request is received on during SASL handshake. This could be due to misconfigured security protocol.SslAuthenticationException if SSL handshake failed due to any SSLException. | Constructor and Description |
|---|
AuthenticationException(String message) |
AuthenticationException(String message, org.apache.kafka.server.audit.AuthenticationErrorInfo errorInfo) |
AuthenticationException(String message, Throwable cause) |
AuthenticationException(String message, Throwable cause, org.apache.kafka.server.audit.AuthenticationErrorInfo errorInfo) |
AuthenticationException(Throwable cause) |
AuthenticationException(Throwable cause, org.apache.kafka.server.audit.AuthenticationErrorInfo errorInfo) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.kafka.server.audit.AuthenticationErrorInfo | errorInfo() |
String | errorMessage()This message is for internal logging/auditing and should not be returned to clients. |
String | logMessage()This message is for internal logging and should not be returned to clients. |
fillInStackTraceaddSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AuthenticationException(String message)
public AuthenticationException(Throwable cause)
public AuthenticationException(Throwable cause, org.apache.kafka.server.audit.AuthenticationErrorInfo errorInfo)
public AuthenticationException(String message, org.apache.kafka.server.audit.AuthenticationErrorInfo errorInfo)
public org.apache.kafka.server.audit.AuthenticationErrorInfo errorInfo()
public String logMessage()
public String errorMessage()