Class RealmAuthorizationEvent

    • Constructor Detail

      • RealmAuthorizationEvent

        protected RealmAuthorizationEvent​(AuthorizationIdentity authorizationIdentity,
                                          Principal principal)
        Construct a new instance.
        authorizationIdentity - the authorization identity
        principal - the authorization principal
    • Method Detail

      • getAuthorizationIdentity

        public AuthorizationIdentity getAuthorizationIdentity()
        Get the authorization identity of this event.
        the authorization identity of this event
      • getPrincipal

        public Principal getPrincipal()
        Get the authorization principal. This principal is the result of the application of the security domain's principal rewriting policies and may not correspond to the name used to locate the identity in the realm.
        the authorization principal
      • 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.
        accept in class RealmEvent
        Type Parameters:
        P - the visitor parameter type
        R - the visitor return type
        visitor - the visitor
        param - the parameter to pass to the visitor handleXxx method
        the value returned from the visitor handleXxx method
      • isAuthorized

        public abstract boolean isAuthorized()
        Determine if this authorization was successful.
        true if the authentication was successful, false if it failed