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,
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,
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,
AlgorithmParameters params)
Sets authentication headers on the HTTP response.
|
byte[] decryptResponseBody(org.apache.commons.httpclient.HttpMethod method) throws IOException
method
- IOException
byte[] decryptBody(javax.servlet.http.HttpServletRequest req) throws IOException
req
- IOException
boolean authenticateResponse(org.apache.commons.httpclient.HttpMethod method, String remoteIP, byte[] decryptedBody)
method
- remoteIP
- decryptedBody
- boolean authenticate(javax.servlet.http.HttpServletRequest req, byte[] decryptedBody)
req
- decryptedBody
- void setRequestAuthentication(org.apache.commons.httpclient.HttpMethod method, byte[] message) throws IOException
method
- message
- IOException
void setResponseAuthentication(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, byte[] responseBody, AlgorithmParameters params) throws IOException
httpRequest
- httpResponse
- responseBody
- params
- IOException
void setRequestAlgorithmParameters(org.apache.commons.httpclient.HttpMethod method, AlgorithmParameters params) throws IOException
method
- params
- IOException
Copyright © 2005–2018 Alfresco Software. All rights reserved.