public class RequestHashAuthenticator extends AbstractPrivateKeyAuthenticator implements RequestAuthenticator
_lValidityTimePeriod, LOGGER
Constructor and Description |
---|
RequestHashAuthenticator() |
Modifier and Type | Method and Description |
---|---|
String |
addExtrasUrlParameters(String strUrl,
List<String> listElements)
Add extra URL parameters
|
void |
addSecurityParameters(Map mapParameters,
List<String> listElements)
Add security parameters to a parameter map
|
void |
authenticateRequest(org.apache.commons.httpclient.HttpMethodBase method,
List<String> elements)
Authenticate a request
|
boolean |
isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
Check the Authentication of a request
|
buildSignature, getPrivateKey, setPrivateKey
buildSignature, getSignatureElements, getValidityTimePeriod, isValidTimestamp, setHashService, setSignatureElements, setValidityTimePeriod
public boolean isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
isRequestAuthenticated
in interface RequestAuthenticator
request
- The HTTP requestpublic void authenticateRequest(org.apache.commons.httpclient.HttpMethodBase method, List<String> elements)
authenticateRequest
in interface RequestAuthenticator
method
- The HTTP method to authenticateelements
- List of elements to include in the signaturepublic String addExtrasUrlParameters(String strUrl, List<String> listElements)
strUrl
- The URLlistElements
- extra elementsCopyright © 2019 City of Paris. All rights reserved.