public class IdmCredentialManagerUtilities extends Object
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_TYPE_FOR_CONTENT_SERVICES |
static String |
APPLICATION_TYPE_FOR_RM |
static String |
CONTENT_SETTINGS_PATH
Relative path to Content Services' settings directory.
|
static String |
PROCESS_TYPE_ID_FOR_CONTENT_SERVICES_HTTP_NODE |
static String |
PROCESS_TYPE_ID_FOR_RM_HTTP_NODE |
static String |
SSL_AUTH_MODE_NO_AUTH |
static String |
SSL_AUTH_MODE_SERVER_CLIENT |
static String |
SSL_AUTH_MODE_SERVER_ONLY |
static String |
USERROLE_CONTENT_PROPERTY_FILE
User/Role property filename for Content Services
|
static String |
USERROLE_RM_PROPERTY_FILE
User/Role property filename for Record Management
|
static String |
XML_DATA_DIR_PATH_CONTENT
Relative path to the directory where the XML data file resides.
|
static String |
XML_DATA_DIR_PATH_RM |
Constructor and Description |
---|
IdmCredentialManagerUtilities() |
IdmCredentialManagerUtilities(int timeLimit,
int countLimit,
int pageSize)
Constructs an IdmCredentialManagerUtilities.
|
Modifier and Type | Method and Description |
---|---|
static void |
closeStore(oracle.security.idm.IdentityStore store) |
static oracle.security.idm.IdentityStore |
createIdentityStore() |
static oracle.security.idm.IdentityStore |
createIdentityStore(Hashtable env)
Creates an IdentityStore instance with the specified configuration
environment.
|
String |
createUser(String userid,
String password)
Creates a user.
|
void |
deleteUser(String guid)
Deletes the specified user.
|
void |
dispose()
Disposes this IdmCredentialManagerUtilities.
|
protected Vector |
getCMUsers(AttributeValue[] options)
Gets the users that matches the specified options
|
oracle.security.idm.IdentityStore |
getIdentityStore()
Returns the IdentityStore instance
|
String |
getRealmName() |
static Hashtable |
mapPreferredLanguage(String prefLang)
Map the specified Idm preferredLanguage to ECM Locale preferenc.
|
void |
setUserPassword(String guid,
String newPassword)
Sets the userPassword and authPassword attributes of the specified user.
|
boolean |
userExists(String guid)
Gets whether the specified user exists.
|
boolean |
validateUserPassword(String guid,
String password)
Determines whether the supplied password is the correct user password
for the specified user.
|
void |
verifyNotDisposed()
Verifies this IdmCredentialManagerUtilities has not been disposed.
|
public static final String CONTENT_SETTINGS_PATH
public static final String USERROLE_CONTENT_PROPERTY_FILE
public static final String USERROLE_RM_PROPERTY_FILE
public static final String PROCESS_TYPE_ID_FOR_CONTENT_SERVICES_HTTP_NODE
public static final String PROCESS_TYPE_ID_FOR_RM_HTTP_NODE
public static final String APPLICATION_TYPE_FOR_CONTENT_SERVICES
public static final String APPLICATION_TYPE_FOR_RM
public static final String XML_DATA_DIR_PATH_CONTENT
public static final String XML_DATA_DIR_PATH_RM
public static final String SSL_AUTH_MODE_NO_AUTH
public static final String SSL_AUTH_MODE_SERVER_ONLY
public static final String SSL_AUTH_MODE_SERVER_CLIENT
public IdmCredentialManagerUtilities()
public IdmCredentialManagerUtilities(int timeLimit, int countLimit, int pageSize) throws IfsException
timeLimit
- the maximum time to wait, in milliseconds; if the
operation does not complete within this time, an
exception will be thrown; a value of 0 means to wait
indefinitelycountLimit
- the maximum number of entries to be returned in a
search; a value of 0 means no limit.pageSize
- the page size to be returned in a search;IfsException
- if the operation failspublic oracle.security.idm.IdentityStore getIdentityStore() throws IfsException
IfsException
- if the operation failspublic void dispose() throws IfsException
IfsException
- (IFS-12901) if the operation failspublic void verifyNotDisposed() throws IfsException
IfsException
- (IFS-12950) if disposed
or IfsException (IFS-12902) if the operation otherwise failspublic boolean validateUserPassword(String guid, String password) throws IfsException
guid
- the GUID of the userpassword
- the password of the userIfsException
- if the operation failspublic boolean userExists(String guid) throws IfsException
guid
- the GUID of the userIfsException
- (IFS-12913) if the operation failspublic String createUser(String userid, String password) throws IfsException
The user is created directly below the user search base of the specified subscriber. The new user entry belongs to the object classes specified by the subscriber's orclUserObjectClasses attribute. The attribute specified by the subscriber's orclCommonNicknameAttribute, as well as the user's sn, cn, and uid attributes, is set to the specified userid. The userPassword attribute is set to the supplied password. A unique GUID is generated for the orclGuid attribute.
userid
- the useridpassword
- the passwordIfsException
- (IFS-12917) if the operation failspublic void deleteUser(String guid) throws IfsException
guid
- the GUID of the userIfsException
- (IFS-12918) if the operation failspublic void setUserPassword(String guid, String newPassword) throws IfsException
guid
- the GUID of the usernewPassword
- the new passwordIfsException
- (IFS-12919) if the operation failspublic String getRealmName() throws IfsException
IfsException
public static void closeStore(oracle.security.idm.IdentityStore store)
public static oracle.security.idm.IdentityStore createIdentityStore() throws IfsException
IfsException
public static oracle.security.idm.IdentityStore createIdentityStore(Hashtable env) throws IfsException
env
- the configuration environment hastableIfsException
- if the operation failspublic static Hashtable mapPreferredLanguage(String prefLang)
prefLang
- IDM preferredLanguage value.protected Vector getCMUsers(AttributeValue[] options) throws IfsException
options
- the array of options, which includes search and
returned value options.IfsException
- if the operation failsCopyright © 2023. All rights reserved.