Creates a new AuthenticationException with the specified detail message and cause.
Parameters: message - the exception detail message Parameters: cause - the Throwable that caused this exception, or nullif the cause is unavailable, unknown, or not a Throwable since: 3.0