fr.paris.lutece.util.signrequest
Class HeaderHashAuthenticator

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

public class HeaderHashAuthenticator
extends AbstractAuthenticator
implements RequestAuthenticator

HeaderHashAuthenticator


Field Summary
 
Fields inherited from class fr.paris.lutece.util.signrequest.AbstractAuthenticator
_logger
 
Constructor Summary
HeaderHashAuthenticator()
           
 
Method Summary
 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

HeaderHashAuthenticator

public HeaderHashAuthenticator()
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


Copyright © 2014 Mairie de Paris. All Rights Reserved.