Package com.twilio.http
Class ValidationInterceptor
- java.lang.Object
-
- com.twilio.http.ValidationInterceptor
-
- All Implemented Interfaces:
org.apache.http.HttpRequestInterceptor
public class ValidationInterceptor extends Object implements org.apache.http.HttpRequestInterceptor
-
-
Constructor Summary
Constructors Constructor Description ValidationInterceptor(String accountSid, String credentialSid, String signingKeySid, PrivateKey privateKey)Create a new ValidationInterceptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
-
-
-
Constructor Detail
-
ValidationInterceptor
public ValidationInterceptor(String accountSid, String credentialSid, String signingKeySid, PrivateKey privateKey)
Create a new ValidationInterceptor.- Parameters:
accountSid- Twilio Acocunt SIDcredentialSid- Twilio Credential SIDsigningKeySid- Twilio Signing KeyprivateKey- Private Key
-
-
Method Detail
-
process
public void process(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, IOException- Specified by:
processin interfaceorg.apache.http.HttpRequestInterceptor- Throws:
org.apache.http.HttpExceptionIOException
-
-