Interface AuthenticatedSelfService


public interface AuthenticatedSelfService
The AuthenticatedSelfService API exposes the methods to a logged-in user to manage his profile. It provides functionality to manage profile attributes, change password and manage challenge questions and answers. Apart from basic profile operations, there are proxy related operations to get proxy details and submit requests to assign, remove and update the proxy.

Below is the code snippet that shows how to get an instance of this service:

//returns an AuthenticatedSelfService 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);
 client.login("xelsysadm", "password".toCharArray());
 AuthenticatedSelfService authSelfSvc = client.getService(AuthenticatedSelfService.class);
 
 
// Gets the list of system challenge questions
 
 String[] sysChallengeQuestions = authSelfSvc.getSystemChallengeQuestions();
 ....