Hello!
I successfully configured Postman to send visa direct request.
After that I set to "Enforced" method getAlias and trying to re-config the Postman:
added keyId param with value from my project and crypt the payload
public static String getEncryptedPayload(String keyId, String mleServPubPath, String requestPayload) throws CertificateException, JOSEException, IOException {
JWEHeader.Builder headerBuilder = new JWEHeader.Builder(JWEAlgorithm.RSA_OAEP_256, EncryptionMethod.A128GCM);
headerBuilder.keyID(keyId);
headerBuilder.customParam("iat", System.currentTimeMillis());
JWEObject jweObject = new JWEObject(headerBuilder.build(), new Payload(requestPayload));
jweObject.encrypt(new RSAEncrypter(getRSAPublicKey(mleServPubPath)));
return "{\"encData\":\"" + jweObject.serialize() + "\"}";
}
But test is failed:
Solved! Go to Solution
Hi @evgeny_t,
Please share the following information and we'll take a look. Thank you.
1.Request Header
2.Request Body (unencrypted)
3. Response Header (include the x-correlation-id)
4. Response Body (unencrypted)
Hey there, I am facing this same issue while trying to invoke API in android app, can you tell me how did you solved this??
HI @awais1212,
Sorry for delayed reply. Are you still experiencing an error? If so, please provide the following information:
1. End Point
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body
Using SoapUI, you can find the x-correlation-id in the Raw Tab of the response header.
Hi @awais1212,
Do you still need help? If not, please let me know so that I can take you off my contact list.