Class PowerAuthHttpBody

java.lang.Object
io.getlime.security.powerauth.http.PowerAuthHttpBody

public class PowerAuthHttpBody extends Object
Helper class simplifying working with HTTP request body in context of PowerAuth protocol.
Author:
Petr Dvorak
  • Constructor Details

    • PowerAuthHttpBody

      public PowerAuthHttpBody()
  • Method Details

    • getSignatureBaseString

      public static String getSignatureBaseString(String httpMethod, String requestUri, byte[] nonce, byte[] data)
      Prepare signature base string ("data to be signed") using request parameters.
      Parameters:
      httpMethod - HTTP Method (for example "GET", "POST", "PUT", "DELETE", ...)
      requestUri - Request URI identifier (for example "/secure/payment", or "SEC_PAYM" - structure of URI ID is lose, but the first approach is suggested)
      nonce - Random 16B nonce value.
      data - Request data.
      Returns:
      PowerAuth signature base string.