|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EncryptionUtils
Various encryption utility methods.
Method Summary | |
---|---|
boolean |
authenticate(javax.servlet.http.HttpServletRequest req,
byte[] decryptedBody)
Authenticate the http request: validate the MAC, check that the remote IP is as expected and that the timestamp is recent. |
boolean |
authenticateResponse(org.apache.commons.httpclient.HttpMethod method,
java.lang.String remoteIP,
byte[] decryptedBody)
Authenticate the http method response: validate the MAC, check that the remote IP is as expected and that the timestamp is recent. |
byte[] |
decryptBody(javax.servlet.http.HttpServletRequest req)
Decrypt the body of the http request |
byte[] |
decryptResponseBody(org.apache.commons.httpclient.HttpMethod method)
Decrypt the response body of the http method |
void |
setRequestAlgorithmParameters(org.apache.commons.httpclient.HttpMethod method,
java.security.AlgorithmParameters params)
Set the algorithm parameters header on the method request |
void |
setRequestAuthentication(org.apache.commons.httpclient.HttpMethod method,
byte[] message)
Encrypt the http method request body |
void |
setResponseAuthentication(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse,
byte[] responseBody,
java.security.AlgorithmParameters params)
Sets authentication headers on the HTTP response. |
Method Detail |
---|
byte[] decryptResponseBody(org.apache.commons.httpclient.HttpMethod method) throws java.io.IOException
method
-
java.io.IOException
byte[] decryptBody(javax.servlet.http.HttpServletRequest req) throws java.io.IOException
req
-
java.io.IOException
boolean authenticateResponse(org.apache.commons.httpclient.HttpMethod method, java.lang.String remoteIP, byte[] decryptedBody)
method
- remoteIP
- decryptedBody
-
boolean authenticate(javax.servlet.http.HttpServletRequest req, byte[] decryptedBody)
req
- remoteIP
- decryptedBody
-
void setRequestAuthentication(org.apache.commons.httpclient.HttpMethod method, byte[] message) throws java.io.IOException
method
- message
-
java.io.IOException
void setResponseAuthentication(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, byte[] responseBody, java.security.AlgorithmParameters params) throws java.io.IOException
httpRequest
- httpResponse
- responseBody
- params
-
java.io.IOException
void setRequestAlgorithmParameters(org.apache.commons.httpclient.HttpMethod method, java.security.AlgorithmParameters params) throws java.io.IOException
method
- params
-
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |