Class RealmIdentityFailedAuthorizationEvent


public final class RealmIdentityFailedAuthorizationEvent extends RealmIdentityAuthorizationEvent
An event indicating that one identity attempted to authorize as another identity.
Author:
David M. Lloyd
  • Constructor Details

    • RealmIdentityFailedAuthorizationEvent

      public RealmIdentityFailedAuthorizationEvent(AuthorizationIdentity authorizationIdentity, Principal principal, Principal newPrincipal)
      Construct a new instance.
      Parameters:
      authorizationIdentity - the identity of the authorizing party
      principal - the authorization principal
      newPrincipal - the authorize-as principal
  • 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 RealmIdentityAuthorizationEvent
      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
    • isAuthorized

      public boolean isAuthorized()
      Description copied from class: RealmAuthorizationEvent
      Determine if this authorization was successful.
      Specified by:
      isAuthorized in class RealmAuthorizationEvent
      Returns:
      true if the authentication was successful, false if it failed