Updating Signer Challenge Questions
Friday, March 17, 2017 at 09:14amI'm interested in modifying a signer's challenges on an existing package that hasn't been sent. In some cases this means adding a challenge for the first time. In other cases this means first removing existing challenges. Here's some code I tried. It runs without error, but it doesn't have the desired effect. Is this option built into the SDK? I tried using versions 10.10.1 and 11.0.
EslClient eslClient = new EslClient( API_KEY, API_URL ); // get the signer Signer signer = eslClient.getPackageService().getSigner(new PackageId(pkgId), signerId); // display current auth info System.out.println(signer.getAuthentication().getMethod()); System.out.println(signer.getAuthentication().getChallenges()); // clear list and add a new challenge signer.getAuthentication().getChallenges().clear(); signer.getAuthentication().getChallenges().add(new Challenge("New Question", "New Answer")); // update the signer eslClient.getPackageService().updateSigner(new PackageId(pkgId), signer); // retrieve updated signer from eslClient signer = eslClient.getPackageService().getSigner(new PackageId(pkgId), signerId); // display updated auth info System.out.println(signer.getAuthentication().getMethod()); System.out.println(signer.getAuthentication().getChallenges());
Reply to: Updating Signer Challenge Questions
Friday, March 17, 2017 at 09:43amReply to: Updating Signer Challenge Questions
Friday, March 17, 2017 at 10:48amReply to: Updating Signer Challenge Questions
Friday, March 17, 2017 at 10:54amReply to: Updating Signer Challenge Questions
Friday, March 17, 2017 at 10:59amReply to: Updating Signer Challenge Questions
Friday, March 17, 2017 at 11:07amReply to: Updating Signer Challenge Questions
Friday, March 17, 2017 at 11:14amReply to: Updating Signer Challenge Questions
Friday, March 17, 2017 at 11:25amReply to: Updating Signer Challenge Questions
Friday, March 17, 2017 at 11:58amReply to: Updating Signer Challenge Questions
Friday, March 17, 2017 at 12:13pmReply to: Updating Signer Challenge Questions
Friday, March 17, 2017 at 12:20pm