Package oracle.iam.platform
Class OIMClient
java.lang.Object
oracle.iam.platform.OIMClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
getService
(Class<T> serviceClass) Returns a handle to a servics that exposed by OIM such as UserManager, RequestService, tcProvisioningOperationsIntf, ...<T> T
getService
(Class<T> serviceClass, String userLogin, char[] password) Returns a handle to a services that exposed by OIM such as UserManager, RequestService, tcProvisioningOperationsIntf, ...List<oracle.iam.platform.Role>
Logs in to OIM on using credentials provided.List<oracle.iam.platform.Role>
Logs in to OIM on basis of parameters and environment supplied.List<oracle.iam.platform.Role>
Deprecated.List<oracle.iam.platform.Role>
Deprecated.void
logout()
Method to destroy the login session
-
Field Details
-
WLS_CONTEXT_FACTORY
- See Also:
-
JAVA_NAMING_PROVIDER_URL
- See Also:
-
JAVA_NAMING_FACTORY_INITIAL
- See Also:
-
APPSERVER_TYPE_WEBLOGIC
- See Also:
-
-
Constructor Details
-
OIMClient
Creates an instance ofOIMClient
to communicate with the OIM app- Parameters:
env
- environment used to connect to the OIM application
-
OIMClient
public OIMClient()
-
-
Method Details
-
login
@Deprecated public List<oracle.iam.platform.Role> login(String username, String password) throws LoginException Deprecated.This method has been deprecated as it requires Password in String format, which may introduce security issue.- Throws:
LoginException
-
login
Logs in to OIM on using credentials provided.- Parameters:
username
- OIM user loginpassword
- OIM user password- Returns:
- Roles returned here are not users enterprise roles. Don't use these roles
- Throws:
LoginException
- If there is an error during login
-
login
public List<oracle.iam.platform.Role> login(String username, char[] password, Hashtable configEnv) throws LoginException Logs in to OIM on basis of parameters and environment supplied. In case any environment details are not supplied, LoginException is thrown asking for additional parameters.- Parameters:
username
- OIM user loginpassword
- OIM user passwordconfigEnv
- hashtable containing OIM server environment details- Returns:
- Roles returned here are not users enterprise roles. Don't use these roles
- Throws:
LoginException
- If there is an error during login
-
login
@Deprecated public List<oracle.iam.platform.Role> login(String username, String password, Hashtable configEnv) throws LoginException Deprecated.This method has been deprecated as it requires Password in String format, which may introduce security issue.- Throws:
LoginException
-
logout
public void logout()Method to destroy the login session -
getService
Returns a handle to a servics that exposed by OIM such as UserManager, RequestService, tcProvisioningOperationsIntf, ... etc- Type Parameters:
T
-- Parameters:
serviceClass
-- Returns:
-
getService
Returns a handle to a services that exposed by OIM such as UserManager, RequestService, tcProvisioningOperationsIntf, ... etc- Type Parameters:
T
-- Parameters:
serviceClass
-userLogin
- the userLogin for which this LoginSession is createdpassword
- OIM user password- Returns:
-