Class AuthorizationEvent

    • Constructor Detail

      • AuthorizationEvent

        public AuthorizationEvent​(java.util.function.Supplier<Authentication> authentication,
                                  java.lang.Object object,
                                  AuthorizationDecision decision)
        Construct an AuthorizationEvent
        Parameters:
        authentication - the principal requiring access
        object - the object to which access was requested
        decision - whether authorization was granted or denied
    • Method Detail

      • getAuthentication

        public java.util.function.Supplier<Authentication> getAuthentication()
        Get the principal requiring access
        Returns:
        the principal requiring access
      • getObject

        public java.lang.Object getObject()
        Get the object to which access was requested
        Returns:
        the object to which access was requested
      • getAuthorizationDecision

        public AuthorizationDecision getAuthorizationDecision()
        Get the response to the princpal's request
        Returns: