Class RealmSuccessfulAuthenticationEvent


public final class RealmSuccessfulAuthenticationEvent extends RealmDefiniteOutcomeAuthenticationEvent
A realm event signifying authentication success.
Author:
David M. Lloyd
  • Constructor Details

    • RealmSuccessfulAuthenticationEvent

      public RealmSuccessfulAuthenticationEvent(RealmIdentity realmIdentity, AuthorizationIdentity authorizationIdentity, Credential credential, Evidence evidence)
      Construct a new instance.
      Parameters:
      realmIdentity - the realm identity that successfully authenticated
      authorizationIdentity - the authenticated authorization identity
      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

    • getAuthorizationIdentity

      public AuthorizationIdentity getAuthorizationIdentity()
      Get the authorization identity.
      Returns:
      the authorization identity
    • 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