Class RealmFailedAuthenticationEvent


public final class RealmFailedAuthenticationEvent extends RealmDefiniteOutcomeAuthenticationEvent
A realm event signifying a failed authentication.
Author:
David M. Lloyd
  • Constructor Details

    • RealmFailedAuthenticationEvent

      public RealmFailedAuthenticationEvent(RealmIdentity realmIdentity, Credential credential, Evidence evidence)
      Construct a new instance.
      Parameters:
      realmIdentity - the realm identity of the failed authentication
      credential - the actual credential value from the authentication (may be null if not known)
      evidence - the evidence used to authenticate (may be null if not known or not applicable)
  • Method Details

    • accept

      public <P, R> R accept(RealmEventVisitor<P,R> visitor, P param)
      Description copied from class: RealmEvent
      Accept the given visitor, calling the method which is most applicable to this event type.
      Overrides:
      accept in class RealmDefiniteOutcomeAuthenticationEvent
      Type Parameters:
      P - the visitor parameter type
      R - the visitor return type
      Parameters:
      visitor - the visitor
      param - the parameter to pass to the visitor handleXxx method
      Returns:
      the value returned from the visitor handleXxx method
    • isSuccess

      public boolean isSuccess()
      Description copied from class: RealmAuthenticationEvent
      Determine if this authentication was definitely successful.
      Specified by:
      isSuccess in class RealmAuthenticationEvent
      Returns:
      true if the authentication was definitely successful, false if it was not definitely successful