Package io.jmix.authserver.event
Class AsResourceServerBeforeInvocationEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
io.jmix.authserver.event.AsResourceServerBeforeInvocationEvent
- All Implemented Interfaces:
- Serializable
public class AsResourceServerBeforeInvocationEvent
extends org.springframework.context.ApplicationEvent
Event fired before resource server (registered by Authorization Server add-on) API call.
 Event listeners can prevent a controller invocation using 
preventInvocation() method.- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionAsResourceServerBeforeInvocationEvent(org.springframework.security.core.Authentication authentication, jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) 
- 
Method SummaryModifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationintjakarta.servlet.ServletRequestjakarta.servlet.ServletResponseorg.springframework.security.core.AuthenticationbooleanvoidvoidsetErrorCode(int errorCode) voidsetErrorMessage(String errorMessage) Methods inherited from class org.springframework.context.ApplicationEventgetTimestampMethods inherited from class java.util.EventObjecttoString
- 
Constructor Details- 
AsResourceServerBeforeInvocationEventpublic AsResourceServerBeforeInvocationEvent(org.springframework.security.core.Authentication authentication, jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) 
 
- 
- 
Method Details- 
getSourcepublic org.springframework.security.core.Authentication getSource()- Overrides:
- getSourcein class- EventObject
 
- 
getAuthenticationpublic org.springframework.security.core.Authentication getAuthentication()
- 
getRequestpublic jakarta.servlet.ServletRequest getRequest()
- 
getResponsepublic jakarta.servlet.ServletResponse getResponse()
- 
isInvocationPreventedpublic boolean isInvocationPrevented()
- 
preventInvocationpublic void preventInvocation()
- 
getErrorCodepublic int getErrorCode()
- 
setErrorCodepublic void setErrorCode(int errorCode) 
- 
getErrorMessage
- 
setErrorMessage
 
-