Class RealmIdentityAuthorizationEvent

    • Field Detail

      • newPrincipal

        private final Principal newPrincipal
    • Constructor Detail

      • RealmIdentityAuthorizationEvent

        protected RealmIdentityAuthorizationEvent​(AuthorizationIdentity authorizationIdentity,
                                                  Principal principal,
                                                  Principal newPrincipal)
        Construct a new instance.
        authorizationIdentity - the identity of the authorizing party
        principal - the authorization principal
        newPrincipal - the authorize-as principal
    • Method Detail

      • getNewPrincipal

        public Principal getNewPrincipal()
        Get the principal to which the existing identity is being authorized to act.
        the new 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 RealmAuthorizationEvent
        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