Interface UnauthenticatedSelfService


public interface UnauthenticatedSelfService
The UnauthenticatedSelfService API exposes the methods to a user who is not logged-in to the system to submit a request to register himself in the system and reset his forgotten/expired password.
Below is the code snippet that shows how to get an instance of this service:

//returns an UnauthenticatedSelfService service instance
 
 Hashtable<String, String> env = new Hashtable<String, String>();
 env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, "t3://oimhost:oimport";
 env.put(OIMClient.JAVA_NAMING_FACTORY_INITIAL, "weblogic.jndi.WLInitialContextFactory");
 env.put("APPSERVER_TYPE", "wls");
 OIMClient client = new OIMClient(env);
 UnauthenticatedSelfService unauthSelfSvc = client.getService(UnauthenticatedSelfService.class);
 
 
// Gets the list of challenge questions for the username provided as an argument of the method.
 
 String[] challengeQuestions = unauthSelfSvc.getChallengeQuestions(userName)();
 ....