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 Summary
Modifier and TypeMethodDescriptionbooleanvalidateEncryptedRequest(EncryptedRequest request) Test whether encrypted request contains valid data.booleanvalidateEncryptedResponse(EncryptedResponse response) Test whether encrypted response contains valid data.
-
Method Details
-
validateEncryptedRequest
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
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.
-