Class AuthenticationInterceptor
- java.lang.Object
- 
- jadex.bridge.service.component.interceptors.AbstractApplicableInterceptor
- 
- jadex.bridge.service.component.interceptors.ComponentThreadInterceptor
- 
- jadex.bridge.service.component.interceptors.AbstractLRUApplicableInterceptor
- 
- jadex.bridge.service.component.interceptors.AuthenticationInterceptor
 
 
 
 
- 
- All Implemented Interfaces:
- IServiceInvocationInterceptor
 
 public class AuthenticationInterceptor extends AbstractLRUApplicableInterceptor 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 SummaryFields Modifier and Type Field Description protected booleansendThe mode (send or receive).- 
Fields inherited from class jadex.bridge.service.component.interceptors.AbstractLRUApplicableInterceptorapplicables
 - 
Fields inherited from class jadex.bridge.service.component.interceptors.ComponentThreadInterceptoria
 
- 
 - 
Constructor SummaryConstructors Constructor Description AuthenticationInterceptor(IInternalAccess ia, boolean send)Create a new AuthenticationInterceptor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancustomIsApplicable(ServiceInvocationContext context)Test if the interceptor is applicable.IFuture<java.lang.Void>execute(ServiceInvocationContext context)Execute the interceptor.protected booleanisAuthenticated(java.lang.annotation.Annotation anno)Check if an annotation belongs to the supported types of pre/postconditions.- 
Methods inherited from class jadex.bridge.service.component.interceptors.AbstractLRUApplicableInterceptorisApplicable
 - 
Methods inherited from class jadex.bridge.service.component.interceptors.ComponentThreadInterceptorgetComponent
 
- 
 
- 
- 
- 
Constructor Detail- 
AuthenticationInterceptorpublic AuthenticationInterceptor(IInternalAccess ia, boolean send) Create a new AuthenticationInterceptor.
 
- 
 - 
Method Detail- 
customIsApplicablepublic boolean customIsApplicable(ServiceInvocationContext context) Test if the interceptor is applicable.- Specified by:
- customIsApplicablein class- AbstractLRUApplicableInterceptor
- Returns:
- True, if applicable.
 
 - 
isAuthenticatedprotected boolean isAuthenticated(java.lang.annotation.Annotation anno) Check if an annotation belongs to the supported types of pre/postconditions.
 - 
executepublic IFuture<java.lang.Void> execute(ServiceInvocationContext context) Execute the interceptor.- Parameters:
- context- The invocation context.
 
 
- 
 
-