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

public abstract class AbstractPrivateKeyAuthenticator extends AbstractAuthenticator
Abstract Private Key Authenticator
  • Constructor Details

    • AbstractPrivateKeyAuthenticator

      public AbstractPrivateKeyAuthenticator()
  • Method Details

    • setPrivateKey

      public void setPrivateKey(String strKey)
      Sets the private key
      Parameters:
      strKey - The private key
    • buildSignature

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