Package fr.paris.lutece.util.signrequest
Class AbstractPrivateKeyAuthenticator
java.lang.Object
fr.paris.lutece.util.signrequest.AbstractAuthenticator
fr.paris.lutece.util.signrequest.AbstractPrivateKeyAuthenticator
- All Implemented Interfaces:
RequestAuthenticator
- Direct Known Subclasses:
HeaderHashAuthenticator,RequestHashAuthenticator
Abstract Private Key Authenticator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildSignature(List<String> listElements, String strTimestamp) Create a signaturevoidsetPrivateKey(String strKey) Sets the private keyMethods inherited from class fr.paris.lutece.util.signrequest.AbstractAuthenticator
buildSignature, getValidityTimePeriod, setHashService, setSignatureElements, setValidityTimePeriodMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.util.signrequest.RequestAuthenticator
getSecurityInformations, isRequestAuthenticated
-
Constructor Details
-
AbstractPrivateKeyAuthenticator
public AbstractPrivateKeyAuthenticator()
-
-
Method Details
-
setPrivateKey
Sets the private key- Parameters:
strKey- The private key
-
buildSignature
Create a signature- Parameters:
listElements- The list of elements that part of the hashstrTimestamp- The timestamp- Returns:
- A signature as an Hexadecimal Hash
-