net.adamcin.httpsig.http.ning
Class RotateAndReplayResponseFilter

java.lang.Object
  extended by net.adamcin.httpsig.http.ning.RotateAndReplayResponseFilter
All Implemented Interfaces:
com.ning.http.client.filter.ResponseFilter

public class RotateAndReplayResponseFilter
extends Object
implements com.ning.http.client.filter.ResponseFilter

Implementation of ResponseFilter which calls Signer.rotateKeys(net.adamcin.httpsig.api.Challenge, net.adamcin.httpsig.api.Authorization) so long as the response is a 401 or no keys are left to try.


Constructor Summary
RotateAndReplayResponseFilter(Signer signer)
           
 
Method Summary
 com.ning.http.client.filter.FilterContext filter(com.ning.http.client.filter.FilterContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotateAndReplayResponseFilter

public RotateAndReplayResponseFilter(Signer signer)
Method Detail

filter

public com.ning.http.client.filter.FilterContext filter(com.ning.http.client.filter.FilterContext ctx)
                                                 throws com.ning.http.client.filter.FilterException
Specified by:
filter in interface com.ning.http.client.filter.ResponseFilter
Throws:
com.ning.http.client.filter.FilterException


Copyright © 2013-2014. All Rights Reserved.