org.codegist.crest.security.interceptor
Class AuthentificationInterceptor

java.lang.Object
  extended by org.codegist.crest.interceptor.RequestInterceptorAdapter
      extended by org.codegist.crest.security.interceptor.AuthentificationInterceptor
All Implemented Interfaces:
RequestInterceptor

public class AuthentificationInterceptor
extends RequestInterceptorAdapter

Authentification interceptor.

Requires an AuthentificationManager instance to be present in the custom properties.


Constructor Summary
AuthentificationInterceptor(AuthentificationManager authentificationManager)
           
AuthentificationInterceptor(Map<String,Object> customProperties)
           
 
Method Summary
 void afterParamsInjectionHandle(HttpRequest.Builder builder, RequestContext context)
          Called after parameters have been injected into the request.
 
Methods inherited from class org.codegist.crest.interceptor.RequestInterceptorAdapter
beforeParamsInjectionHandle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthentificationInterceptor

public AuthentificationInterceptor(Map<String,Object> customProperties)

AuthentificationInterceptor

public AuthentificationInterceptor(AuthentificationManager authentificationManager)
Method Detail

afterParamsInjectionHandle

public void afterParamsInjectionHandle(HttpRequest.Builder builder,
                                       RequestContext context)
Description copied from interface: RequestInterceptor
Called after parameters have been injected into the request.

Specified by:
afterParamsInjectionHandle in interface RequestInterceptor
Overrides:
afterParamsInjectionHandle in class RequestInterceptorAdapter
Parameters:
builder - The current http request being build
context - The current request context


Copyright © 2011. All Rights Reserved.