public class AuthenticationException extends ApiException
SaslAuthenticationException
if SASL handshake fails with invalid credentials
or any other failure specific to the SASL mechanism used for authentication
UnsupportedSaslMechanismException
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(java.lang.String message) |
AuthenticationException(java.lang.String message,
org.apache.kafka.server.audit.AuthenticationErrorInfo errorInfo) |
AuthenticationException(java.lang.String message,
java.lang.Throwable cause) |
AuthenticationException(java.lang.String message,
java.lang.Throwable cause,
org.apache.kafka.server.audit.AuthenticationErrorInfo errorInfo) |
AuthenticationException(java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
org.apache.kafka.server.audit.AuthenticationErrorInfo |
errorInfo() |
java.lang.String |
errorMessage()
This message is for internal logging/auditing and should not be returned to clients.
|
java.lang.String |
logMessage()
This message is for internal logging and should not be returned to clients.
|
fillInStackTrace
public AuthenticationException(java.lang.String message)
public AuthenticationException(java.lang.Throwable cause)
public AuthenticationException(java.lang.String message, java.lang.Throwable cause)
public AuthenticationException(java.lang.String message, org.apache.kafka.server.audit.AuthenticationErrorInfo errorInfo)
public AuthenticationException(java.lang.String message, java.lang.Throwable cause, org.apache.kafka.server.audit.AuthenticationErrorInfo errorInfo)
public org.apache.kafka.server.audit.AuthenticationErrorInfo errorInfo()
public java.lang.String logMessage()
public java.lang.String errorMessage()