Package fr.paris.lutece.util.signrequest
Class HeaderHashAuthenticator
java.lang.Object
fr.paris.lutece.util.signrequest.AbstractAuthenticator
fr.paris.lutece.util.signrequest.AbstractPrivateKeyAuthenticator
fr.paris.lutece.util.signrequest.HeaderHashAuthenticator
- All Implemented Interfaces:
RequestAuthenticator
public class HeaderHashAuthenticator
extends AbstractPrivateKeyAuthenticator
implements RequestAuthenticator
HeaderHashAuthenticator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSecurityInformations(List<String> elements) return Security informations to put in the request headers and request parametersbooleanisRequestAuthenticated(javax.servlet.http.HttpServletRequest request) Check the Authentication of a requestMethods inherited from class fr.paris.lutece.util.signrequest.AbstractPrivateKeyAuthenticator
buildSignature, setPrivateKeyMethods inherited from class fr.paris.lutece.util.signrequest.AbstractAuthenticator
buildSignature, getValidityTimePeriod, setHashService, setSignatureElements, setValidityTimePeriod
-
Constructor Details
-
HeaderHashAuthenticator
public HeaderHashAuthenticator()
-
-
Method Details
-
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
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
-