public class SaslAuthenticationException extends AuthenticationException
SASL authentication failures typically indicate invalid credentials, but could also include other failures specific to the SASL mechanism used for authentication.
Note:If SaslServer.evaluateResponse(byte[])
throws this exception during
authentication, the message from the exception will be sent to clients in the SaslAuthenticate
response. Custom SaslServer
implementations may throw this exception in order to
provide custom error messages to clients, but should take care not to include any
security-critical information in the message that should not be leaked to unauthenticated clients.
Constructor and Description |
---|
SaslAuthenticationException(String message) |
SaslAuthenticationException(String message,
org.apache.kafka.server.audit.AuthenticationErrorInfo errorInfo) |
SaslAuthenticationException(String message,
Throwable cause) |
SaslAuthenticationException(String message,
Throwable cause,
org.apache.kafka.server.audit.AuthenticationErrorInfo errorInfo) |
errorInfo, errorMessage, logMessage
fillInStackTrace
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public SaslAuthenticationException(String message)
public SaslAuthenticationException(String message, Throwable cause, org.apache.kafka.server.audit.AuthenticationErrorInfo errorInfo)
public SaslAuthenticationException(String message, org.apache.kafka.server.audit.AuthenticationErrorInfo errorInfo)