Class AbstractAuthenticator

    • Constructor Detail

      • AbstractAuthenticator

        public AbstractAuthenticator()
    • Method Detail

      • setSignatureElements

        public void setSignatureElements​(java.util.List<java.lang.String> list)
        Sets the list of signature elements
        Parameters:
        list - The list
      • setHashService

        public void setHashService​(HashService service)
        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

        public java.lang.String buildSignature​(java.util.List<java.lang.String> listElements,
                                               java.lang.String strTimestamp,
                                               java.lang.String strSecret)
        Create a signature
        Parameters:
        listElements - The list of elements that part of the hash
        strTimestamp - The timestamp
        strSecret - The secret
        Returns:
        A signature as an Hexadecimal Hash