Class AuthenticationResult<T>

java.lang.Object
org.elasticsearch.xpack.core.security.authc.AuthenticationResult<T>

public final class AuthenticationResult<T> extends Object
Represents the result of an authentication attempt. This allows a Realm to respond in 3 different ways (without needing to resort to ActionListener.onFailure(Exception))
  1. Successful authentication of a user
  2. Unable to authenticate user, try another realm (optionally with a diagnostic message)
  3. Unable to authenticate user, terminate authentication (with an error message)