Class OidcResourceServerBeforeInvocationEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
io.jmix.oidc.resourceserver.OidcResourceServerBeforeInvocationEvent
All Implemented Interfaces:
Serializable

public class OidcResourceServerBeforeInvocationEvent extends org.springframework.context.ApplicationEvent
Event is fired before OIDC resource server API call. Event listeners can prevent a controller invocation using preventInvocation() method.
See Also:
  • Constructor Details

    • OidcResourceServerBeforeInvocationEvent

      public OidcResourceServerBeforeInvocationEvent(org.springframework.security.core.Authentication authentication, jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response)
  • Method Details

    • getSource

      public org.springframework.security.core.Authentication getSource()
      Overrides:
      getSource in class EventObject
    • getAuthentication

      public org.springframework.security.core.Authentication getAuthentication()
    • getRequest

      public jakarta.servlet.ServletRequest getRequest()
    • getResponse

      public jakarta.servlet.ServletResponse getResponse()
    • isInvocationPrevented

      public boolean isInvocationPrevented()
    • preventInvocation

      public void preventInvocation()
    • getErrorCode

      public int getErrorCode()
    • setErrorCode

      public void setErrorCode(int errorCode)
    • getErrorMessage

      public String getErrorMessage()
    • setErrorMessage

      public void setErrorMessage(String errorMessage)