Package fr.paris.lutece.util.signrequest
Class RequestHashAuthenticator
- java.lang.Object
-
- fr.paris.lutece.util.signrequest.AbstractAuthenticator
-
- fr.paris.lutece.util.signrequest.AbstractPrivateKeyAuthenticator
-
- fr.paris.lutece.util.signrequest.RequestHashAuthenticator
-
- All Implemented Interfaces:
RequestAuthenticator
public class RequestHashAuthenticator extends AbstractPrivateKeyAuthenticator implements RequestAuthenticator
RequestHashAuthenticator
-
-
Constructor Summary
Constructors Constructor Description RequestHashAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringaddExtrasUrlParameters(java.lang.String strUrl, java.util.List<java.lang.String> listElements)Add extra URL parametersAuthenticateRequestInformationsgetSecurityInformations(java.util.List<java.lang.String> elements)return Security informations to put in the request headers and request parametersbooleanisRequestAuthenticated(javax.servlet.http.HttpServletRequest request)Check the Authentication of a request-
Methods inherited from class fr.paris.lutece.util.signrequest.AbstractPrivateKeyAuthenticator
buildSignature, setPrivateKey
-
Methods inherited from class fr.paris.lutece.util.signrequest.AbstractAuthenticator
buildSignature, getValidityTimePeriod, setHashService, setSignatureElements, setValidityTimePeriod
-
-
-
-
Method Detail
-
isRequestAuthenticated
public boolean isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
Check the Authentication of a request- Specified by:
isRequestAuthenticatedin interfaceRequestAuthenticator- Parameters:
request- The HTTP request- Returns:
- true if authenticated, otherwise false
-
getSecurityInformations
public AuthenticateRequestInformations getSecurityInformations(java.util.List<java.lang.String> elements)
return Security informations to put in the request headers and request parameters- Specified by:
getSecurityInformationsin interfaceRequestAuthenticator- Parameters:
elements- List of elements to include in the signature- Returns:
- AuthenticateRequestInformations
-
addExtrasUrlParameters
public java.lang.String addExtrasUrlParameters(java.lang.String strUrl, java.util.List<java.lang.String> listElements)Add extra URL parameters- Parameters:
strUrl- The URLlistElements- extra elements- Returns:
- The new URL
-
-