Package com.vaadin.hilla.auth
Class EndpointInvocation
java.lang.Object
com.vaadin.hilla.auth.EndpointInvocation
- All Implemented Interfaces:
org.aopalliance.intercept.Invocation,org.aopalliance.intercept.Joinpoint,org.aopalliance.intercept.MethodInvocation
public class EndpointInvocation
extends Object
implements org.aopalliance.intercept.MethodInvocation
Describes an attempt to call an endpoint method.
Instances are used as the subject of the Spring Security authorization events
that are published when the access to an endpoint method is denied, so that
listeners of
AuthorizationDeniedEvent
can handle endpoint calls the same way as method security invocations.
This is a description of an invocation that never happened, not a resumable
invocation: the arguments are never included, as they are not deserialized
before the access check is done, and proceed() is not supported.
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointInvocation(String endpointName, Object endpointObject, Method method) Creates a new instance. -
Method Summary
-
Constructor Details
-
EndpointInvocation
Creates a new instance.- Parameters:
endpointName- the name of the endpoint, notnullendpointObject- the endpoint object the method belongs to, notnullmethod- the endpoint method, notnull
-
-
Method Details
-
getEndpointName
Gets the name of the endpoint the call was addressed to.- Returns:
- the endpoint name
-
getMethodName
Gets the name of the endpoint method the call was addressed to.- Returns:
- the endpoint method name
-
getMethod
- Specified by:
getMethodin interfaceorg.aopalliance.intercept.MethodInvocation
-
getArguments
Gets the method arguments, always empty.The request payload is deliberately not exposed: the access check is done before the payload is deserialized.
- Specified by:
getArgumentsin interfaceorg.aopalliance.intercept.Invocation- Returns:
- an empty array
-
getThis
- Specified by:
getThisin interfaceorg.aopalliance.intercept.Joinpoint
-
getStaticPart
- Specified by:
getStaticPartin interfaceorg.aopalliance.intercept.Joinpoint
-
proceed
Not supported, as this describes a call that was never made.- Specified by:
proceedin interfaceorg.aopalliance.intercept.Joinpoint- Throws:
UnsupportedOperationException- always
-
toString
-