Package fr.paris.lutece.util.signrequest
Class AbstractAuthenticator
java.lang.Object
fr.paris.lutece.util.signrequest.AbstractAuthenticator
- All Implemented Interfaces:
RequestAuthenticator
- Direct Known Subclasses:
AbstractJWTAuthenticator,AbstractPrivateKeyAuthenticator,BasicAuthorizationAuthenticator,ClientHeaderHashAuthenticator
AbstractAuthenticator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildSignature(List<String> listElements, String strTimestamp, String strSecret) Create a signaturelongGet validity time period (in seconds) between the timestamp in the request and the server timestampvoidsetHashService(HashService service) Sets the Hash servicevoidsetSignatureElements(List<String> list) Sets the list of signature elementsvoidsetValidityTimePeriod(long lPeriod) Sets validity time period (in seconds) between the timestamp in the request and the server timestampMethods 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
-
AbstractAuthenticator
public AbstractAuthenticator()
-
-
Method Details
-
setSignatureElements
Sets the list of signature elements- Parameters:
list- The list
-
setHashService
Sets the Hash service- Parameters:
service- The Hash service
-
setValidityTimePeriod
public void setValidityTimePeriod(long lPeriod) Sets validity time period (in seconds) between the timestamp in the request and the server timestamp- Parameters:
lPeriod- The validity time period
-
getValidityTimePeriod
public long getValidityTimePeriod()Get validity time period (in seconds) between the timestamp in the request and the server timestamp- Returns:
- the validity time period
-
buildSignature
Create a signature- Parameters:
listElements- The list of elements that part of the hashstrTimestamp- The timestampstrSecret- The secret- Returns:
- A signature as an Hexadecimal Hash
-