OIM API To Set Challenge Questions For Logged In User

package com.massiveGaze.password;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import oracle.iam.passwordmgmt.api.ChallengeResponseService;
import oracle.iam.passwordmgmt.exception.ChallengeResponseException;
import oracle.iam.passwordmgmt.vo.Challenge;

import com.massiveGaze.connection.Platform;

public class SetChallengeQuestionsForLoggedInUser {

 public static void main(String[] args) throws ChallengeResponseException {
   System.out.println("Setting  Challenge Questions ....");
         Map<String, Object> mapQnA = new HashMap<String, Object>();   
   mapQnA.put("What is your mother's maiden name?", "name");
   //mapQnA.put("What is your favorite color?", "5");
   mapQnA.put("What is the city of your birth?", "birth");
   mapQnA.put("What is the name of your pet?", "pet");
    Platform.getService(ChallengeResponseService.class).setChallengeResponsesForLoggedInUser((Set<Challenge>) mapQnA);

 }

}

No comments:

Post a Comment

About OIM

Oracle Identity Management enables organizations to effectively manage the end - to - end life - cycle of user ide...

Popular Posts