public class ClientHeaderHashAuthenticator extends AbstractAuthenticator implements RequestAuthenticator
_lValidityTimePeriod, LOGGER| Constructor and Description |
|---|
ClientHeaderHashAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
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
|
void |
setClientId(String strClientId)
Set the client ID This setter should be used in the Spring context file of the CLIENT to declare the client ID.
|
void |
setClientKeyService(ClientKeyService clientKeyService)
Set the clientKeyService This setter should be used in the Spring context file of the SERVER to provide a lookup service to find keys for given client
ids.
|
buildSignature, getSignatureElements, getValidityTimePeriod, isValidTimestamp, setHashService, setSignatureElements, setValidityTimePeriodpublic void setClientId(String strClientId)
strClientId - The client IDpublic void setClientKeyService(ClientKeyService clientKeyService)
clientKeyService - The client key servicepublic boolean isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
isRequestAuthenticated in interface RequestAuthenticatorrequest - The HTTP requestpublic void authenticateRequest(org.apache.commons.httpclient.HttpMethodBase method,
List<String> elements)
authenticateRequest in interface RequestAuthenticatormethod - The HTTP method to authenticateelements - List of elements to include in the signatureCopyright © 2019 City of Paris. All rights reserved.