fr.paris.lutece.util.signrequest
Class RequestHashAuthenticator

java.lang.Object
  extended by fr.paris.lutece.util.signrequest.AbstractAuthenticator
      extended by fr.paris.lutece.util.signrequest.RequestHashAuthenticator
All Implemented Interfaces:
RequestAuthenticator

public class RequestHashAuthenticator
extends AbstractAuthenticator
implements RequestAuthenticator

RequestHashAuthenticator


Field Summary
 
Fields inherited from class fr.paris.lutece.util.signrequest.AbstractAuthenticator
_logger
 
Constructor Summary
RequestHashAuthenticator()
           
 
Method Summary
 String addExtrasUrlParameters(String url, List<String> elements)
           
 void addSecurityParameters(Map mapParameters, List<String> elements)
          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
 
Methods inherited from class fr.paris.lutece.util.signrequest.AbstractAuthenticator
buildSignature, getSignatureElements, isValidTimestamp, setHashService, setPrivateKey, setSignatureElements, setValidityTimePeriod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestHashAuthenticator

public RequestHashAuthenticator()
Method Detail

isRequestAuthenticated

public boolean isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
Check the Authentication of a request

Specified by:
isRequestAuthenticated in interface RequestAuthenticator
Parameters:
request - The HTTP request
Returns:
true if authenticated, otherwise false

authenticateRequest

public void authenticateRequest(org.apache.commons.httpclient.HttpMethodBase method,
                                List<String> elements)
Authenticate a request

Specified by:
authenticateRequest in interface RequestAuthenticator
Parameters:
method - The HTTP method to authenticate
elements - List of elements to include in the signature

addExtrasUrlParameters

public String addExtrasUrlParameters(String url,
                                     List<String> elements)

addSecurityParameters

public void addSecurityParameters(Map mapParameters,
                                  List<String> elements)
Add security parameters to a parameter map

Parameters:
mapParameters - The parameter map
elements - The element list to build the signature


Copyright © 2014 Mairie de Paris. All Rights Reserved.