Skip to content

Commit a0613a5

Browse files
committed
removing key management api from sdk tracker
1 parent 75f34f6 commit a0613a5

File tree

1 file changed

+3
-98
lines changed

1 file changed

+3
-98
lines changed

src/main/java/utilities/tracking/SdkTracker.java

Lines changed: 3 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -14,44 +14,6 @@ public Object insertDeveloperIdTracker(Object requestObj, String requestClass, S
1414

1515
switch (requestClass)
1616
{
17-
case "CreateP12KeysRequest":
18-
CreateP12KeysRequest createP12KeysRequest = (CreateP12KeysRequest)requestObj;
19-
20-
if (createP12KeysRequest.getClientReferenceInformation() == null)
21-
{
22-
createP12KeysRequest.setClientReferenceInformation(new Kmsv2keyssymClientReferenceInformation());
23-
}
24-
25-
if (createP12KeysRequest.getClientReferenceInformation().getPartner() == null)
26-
{
27-
createP12KeysRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner());
28-
}
29-
30-
if (createP12KeysRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null)
31-
{
32-
createP12KeysRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue);
33-
}
34-
35-
return createP12KeysRequest;
36-
case "DeleteBulkP12KeysRequest":
37-
DeleteBulkP12KeysRequest deleteBulkP12KeysRequest = (DeleteBulkP12KeysRequest)requestObj;
38-
39-
if (deleteBulkP12KeysRequest.getClientReferenceInformation() == null)
40-
{
41-
deleteBulkP12KeysRequest.setClientReferenceInformation(new Kmsv2keyssymClientReferenceInformation());
42-
}
43-
44-
if (deleteBulkP12KeysRequest.getClientReferenceInformation().getPartner() == null)
45-
{
46-
deleteBulkP12KeysRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner());
47-
}
48-
49-
if (deleteBulkP12KeysRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null)
50-
{
51-
deleteBulkP12KeysRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue);
52-
}
53-
54-
return deleteBulkP12KeysRequest;
5517
case "CapturePaymentRequest":
5618
CapturePaymentRequest capturePaymentRequest = (CapturePaymentRequest)requestObj;
5719

@@ -152,7 +114,7 @@ public Object insertDeveloperIdTracker(Object requestObj, String requestClass, S
152114

153115
if (checkPayerAuthEnrollmentRequest.getClientReferenceInformation() == null)
154116
{
155-
checkPayerAuthEnrollmentRequest.setClientReferenceInformation(new Riskv1decisionsClientReferenceInformation());
117+
checkPayerAuthEnrollmentRequest.setClientReferenceInformation(new Riskv1authenticationsetupsClientReferenceInformation());
156118
}
157119

158120
if (checkPayerAuthEnrollmentRequest.getClientReferenceInformation().getPartner() == null)
@@ -171,7 +133,7 @@ public Object insertDeveloperIdTracker(Object requestObj, String requestClass, S
171133

172134
if (payerAuthSetupRequest.getClientReferenceInformation() == null)
173135
{
174-
payerAuthSetupRequest.setClientReferenceInformation(new Riskv1decisionsClientReferenceInformation());
136+
payerAuthSetupRequest.setClientReferenceInformation(new Riskv1authenticationsetupsClientReferenceInformation());
175137
}
176138

177139
if (payerAuthSetupRequest.getClientReferenceInformation().getPartner() == null)
@@ -190,7 +152,7 @@ public Object insertDeveloperIdTracker(Object requestObj, String requestClass, S
190152

191153
if (validateRequest.getClientReferenceInformation() == null)
192154
{
193-
validateRequest.setClientReferenceInformation(new Riskv1decisionsClientReferenceInformation());
155+
validateRequest.setClientReferenceInformation(new Riskv1authenticationsetupsClientReferenceInformation());
194156
}
195157

196158
if (validateRequest.getClientReferenceInformation().getPartner() == null)
@@ -375,63 +337,6 @@ public Object insertDeveloperIdTracker(Object requestObj, String requestClass, S
375337
}
376338

377339
return updateSubscription;
378-
case "CreateSharedSecretKeysRequest":
379-
CreateSharedSecretKeysRequest createSharedSecretKeysRequest = (CreateSharedSecretKeysRequest)requestObj;
380-
381-
if (createSharedSecretKeysRequest.getClientReferenceInformation() == null)
382-
{
383-
createSharedSecretKeysRequest.setClientReferenceInformation(new Kmsv2keyssymClientReferenceInformation());
384-
}
385-
386-
if (createSharedSecretKeysRequest.getClientReferenceInformation().getPartner() == null)
387-
{
388-
createSharedSecretKeysRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner());
389-
}
390-
391-
if (createSharedSecretKeysRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null)
392-
{
393-
createSharedSecretKeysRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue);
394-
}
395-
396-
return createSharedSecretKeysRequest;
397-
case "CreateSharedSecretKeysVerifiRequest":
398-
CreateSharedSecretKeysVerifiRequest createSharedSecretKeysVerifiRequest = (CreateSharedSecretKeysVerifiRequest)requestObj;
399-
400-
if (createSharedSecretKeysVerifiRequest.getClientReferenceInformation() == null)
401-
{
402-
createSharedSecretKeysVerifiRequest.setClientReferenceInformation(new Kmsv2keyssymClientReferenceInformation());
403-
}
404-
405-
if (createSharedSecretKeysVerifiRequest.getClientReferenceInformation().getPartner() == null)
406-
{
407-
createSharedSecretKeysVerifiRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner());
408-
}
409-
410-
if (createSharedSecretKeysVerifiRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null)
411-
{
412-
createSharedSecretKeysVerifiRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue);
413-
}
414-
415-
return createSharedSecretKeysVerifiRequest;
416-
case "DeleteBulkSymmetricKeysRequest":
417-
DeleteBulkSymmetricKeysRequest deleteBulkSymmetricKeysRequest = (DeleteBulkSymmetricKeysRequest)requestObj;
418-
419-
if (deleteBulkSymmetricKeysRequest.getClientReferenceInformation() == null)
420-
{
421-
deleteBulkSymmetricKeysRequest.setClientReferenceInformation(new Kmsv2keyssymClientReferenceInformation());
422-
}
423-
424-
if (deleteBulkSymmetricKeysRequest.getClientReferenceInformation().getPartner() == null)
425-
{
426-
deleteBulkSymmetricKeysRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner());
427-
}
428-
429-
if (deleteBulkSymmetricKeysRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null)
430-
{
431-
deleteBulkSymmetricKeysRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue);
432-
}
433-
434-
return deleteBulkSymmetricKeysRequest;
435340
case "TaxRequest":
436341
TaxRequest taxRequest = (TaxRequest)requestObj;
437342

0 commit comments

Comments
 (0)