public interface EncryptionUtils
| Modifier and Type | Method and Description |
|---|---|
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.
|
byte[] decryptResponseBody(org.apache.commons.httpclient.HttpMethod method)
throws java.io.IOException
method - java.io.IOExceptionbyte[] decryptBody(javax.servlet.http.HttpServletRequest req)
throws java.io.IOException
req - java.io.IOExceptionboolean 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.IOExceptionvoid 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.IOExceptionvoid setRequestAlgorithmParameters(org.apache.commons.httpclient.HttpMethod method,
java.security.AlgorithmParameters params)
throws java.io.IOException
method - params - java.io.IOExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.