Class AuthenticationInterceptor
java.lang.Object
jadex.providedservice.impl.service.interceptors.AbstractApplicableInterceptor
jadex.providedservice.impl.service.interceptors.ComponentThreadInterceptor
jadex.providedservice.impl.service.interceptors.AbstractLRUApplicableInterceptor
jadex.providedservice.impl.service.interceptors.AuthenticationInterceptor
- All Implemented Interfaces:
IServiceInvocationInterceptor
Interceptor that can be used to realize authenticated end-to-end communication.
- verifies that a call is authenticated by checking the requested/annotated role(s) against the actual role(s) authenticated by the security service.
-
Field Summary
FieldsFields inherited from class jadex.providedservice.impl.service.interceptors.AbstractLRUApplicableInterceptor
applicables
Fields inherited from class jadex.providedservice.impl.service.interceptors.ComponentThreadInterceptor
ia
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationInterceptor
(jadex.core.impl.Component ia, boolean send) Create a new AuthenticationInterceptor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Test if the interceptor is applicable.jadex.future.IFuture
<Void> execute
(ServiceInvocationContext context) Execute the interceptor.protected boolean
isAuthenticated
(Annotation anno) Check if an annotation belongs to the supported types of pre/postconditions.Methods inherited from class jadex.providedservice.impl.service.interceptors.AbstractLRUApplicableInterceptor
isApplicable
Methods inherited from class jadex.providedservice.impl.service.interceptors.ComponentThreadInterceptor
getComponent
-
Field Details
-
send
protected boolean sendThe mode (send or receive).
-
-
Constructor Details
-
AuthenticationInterceptor
public AuthenticationInterceptor(jadex.core.impl.Component ia, boolean send) Create a new AuthenticationInterceptor.
-
-
Method Details
-
customIsApplicable
Test if the interceptor is applicable.- Specified by:
customIsApplicable
in classAbstractLRUApplicableInterceptor
- Returns:
- True, if applicable.
-
isAuthenticated
Check if an annotation belongs to the supported types of pre/postconditions. -
execute
Execute the interceptor.- Parameters:
context
- The invocation context.
-