Interface RequestResponseValidator

All Known Implementing Classes:
EciesRequestResponseValidator

public interface RequestResponseValidator
The RequestResponseValidator interface allows you to formally validate the encrypted request or response data in advance, before you try to decrypt it.
  • Method Details

    • validateEncryptedRequest

      boolean validateEncryptedRequest(EncryptedRequest request)
      Test whether encrypted request contains valid data. The function does a simple formal validation whether all required parameters are present in the request object.
      Parameters:
      request - Encrypted request object to validate.
      Returns:
      true if object appears to contain valid data, otherwise false.
    • validateEncryptedResponse

      boolean validateEncryptedResponse(EncryptedResponse response)
      Test whether encrypted response contains valid data. The function does a simple formal validation whether all required parameters are present in the response object.
      Parameters:
      response - Encrypted response object to validate.
      Returns:
      true if object appears to contain valid data, otherwise false.