I have created a java service with parameter @Requestparam String Id when i was passing the Exact value it's working fine when i try to pass the encrypted value it is not working properly. I have given my work around below.
@GetMapping("fetch")
@Produces(value = "application/json")
@ApiOperation("Get user detail from Okta")
public ResponseEntity<UserInfoRespone> getUserDetailsFromOkta(@RequestParam String agentId) {
System.out.println("Actual:" +"c4njCC2/reRud+O/I41w3w==");
System.out.println("Incoming agent Id:" + agentId);
}
When i call the service using postman passed the encrypted value c4njCC2/reRud+O/I41w3w== but when i was trying to print the incoming agent id i found few characters were missing in the actual text looks like c4njCC2/reRud O/I41w3w== it has missed + symbol and added space to itself. so when i tried to decrypt the String it's coming as null.
Expected : c4njCC2/reRud+O/I41w3w==
Actual : c4njCC2/reRud O/I41w3w==
Could some one help me to resolve this?