|
SiteMinder Java SDK r12.51 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netegrity.sdk.dmsapi.SmDmsObject
com.netegrity.sdk.dmsapi.SmDmsUser
public class SmDmsUser
Represents a user within an organization. Users can be end users or administrators.
| Field Summary | |
|---|---|
static int |
DMSUSER_DISABLED_ADMINDISABLED
Disabled bits to indicate that the user account is disabled by an administrator. |
static int |
DMSUSER_DISABLED_DISABLEDMASK
Disabled bits mask. |
static int |
DMSUSER_DISABLED_ENABLED
Enable the user account. |
static int |
DMSUSER_DISABLED_INACTIVITY
Disabled bits to indicate that the user account is disabled for inactivity over a period of time. |
static int |
DMSUSER_DISABLED_MAXLOGINFAIL
Disabled bits to indicate that the user account is disabled for maximum login failures. |
static int |
DMSUSER_DISABLED_PEERDISABLED
Disabled bits to indicate that the user account is disabled natively in the directory. |
static int |
DMSUSER_DISABLED_PWEXPIRED
Disabled bits to indicate that the user account is disabled for password expiration. |
static int |
DMSUSER_DISABLED_PWMUSTCHANGE
Disabled bits to indicate that the user will be forced to change his or her password during the next login. |
| Fields inherited from class com.netegrity.sdk.dmsapi.SmDmsObject |
|---|
DMSOBJECT_CLASS_DIRECTORY, DMSOBJECT_CLASS_GROUP, DMSOBJECT_CLASS_ORGANIZATION, DMSOBJECT_CLASS_ROLE, DMSOBJECT_CLASS_UNKNOWN, DMSOBJECT_CLASS_USER |
| Method Summary | |
|---|---|
SmApiResult |
addToRole(SmDmsRole role)
Adds this user to the specified DMS role. |
SmApiResult |
addToRoleNoAdminCheck(SmDmsRole role)
|
SmApiResult |
authenticate(java.lang.String password)
Authenticates the user. |
SmApiResult |
authenticateNoAdminCheck(java.lang.String password)
|
SmApiResult |
changePassword(java.lang.String newPassword,
java.lang.String oldPassword,
boolean doNotRequireOldPassword)
Changes the user's password. |
SmApiResult |
changePasswordNoAdminCheck(java.lang.String newPassword,
java.lang.String oldPassword,
boolean doNotRequireOldPassword)
|
SmApiResult |
getDisabledState(java.util.Vector disabledState)
Gets the disabled state of the user account. |
SmApiResult |
getDisabledStateNoAdminCheck(java.util.Vector disabledState)
|
SmApiResult |
getPrivileges(java.util.Hashtable privileges)
Internal use only. |
SmApiResult |
getPrivilegesNoAdminCheck(java.util.Hashtable privileges)
|
SmApiResult |
getRealmContext(java.lang.String ruleName,
java.lang.String ruleDesc,
java.util.Vector realmContexts)
Internal use only. |
SmApiResult |
getRealmContextNoAdminCheck(java.lang.String ruleName,
java.lang.String ruleDesc,
java.util.Vector realmContexts)
|
SmApiResult |
getRealmPrivileges(java.lang.String realmOID,
java.util.Hashtable privileges)
Internal use only. |
SmApiResult |
getRealmPrivilegesNoAdminCheck(java.lang.String realmOID,
java.util.Hashtable privileges)
|
SmApiResult |
getRoles(java.util.Vector roles)
Gets a list of DMS roles that the user is a member of. |
SmApiResult |
getRolesNoAdminCheck(java.util.Vector roles)
|
SmApiResult |
getUserPWState(SmDmsUserPWState pwState)
Retrieves the user's password state. |
SmApiResult |
getUserPWStateNoAdminCheck(SmDmsUserPWState pwState)
|
SmApiResult |
removeFromRole(SmDmsRole role)
Removes this user from the specified DMS role. |
SmApiResult |
removeFromRoleNoAdminCheck(SmDmsRole role)
|
SmApiResult |
setDisable()
Disables the user account. |
SmApiResult |
setDisabledState(int disabledState)
Sets the disabled state of the user account. |
SmApiResult |
setDisabledStateNoAdminCheck(int disabledState)
|
SmApiResult |
setDisableNoAdminCheck()
|
SmApiResult |
setEnable()
Enables the user account. |
SmApiResult |
setEnableNoAdminCheck()
|
SmApiResult |
setPasswordMustChange()
Forces the user to change his or her password during the next login. |
SmApiResult |
setPasswordMustChangeNoAdminCheck()
|
SmApiResult |
setUserPWState(SmDmsUserPWState pwState)
Sets the user's password state with any attribute changes made to the passed SmDmsPWState object. |
SmApiResult |
setUserPWState(SmDmsUserPWState pwState,
boolean emptyPWHistory)
Sets the user's password state with any attribute changes made to the passed SmDmsPWState object. |
SmApiResult |
setUserPWStateNoAdminCheck(SmDmsUserPWState pwState)
|
SmApiResult |
setUserPWStateNoAdminCheck(SmDmsUserPWState pwState,
boolean emptyPWHistory)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DMSUSER_DISABLED_DISABLEDMASK
public static final int DMSUSER_DISABLED_ENABLED
public static final int DMSUSER_DISABLED_ADMINDISABLED
public static final int DMSUSER_DISABLED_MAXLOGINFAIL
public static final int DMSUSER_DISABLED_INACTIVITY
public static final int DMSUSER_DISABLED_PWEXPIRED
public static final int DMSUSER_DISABLED_PEERDISABLED
public static final int DMSUSER_DISABLED_PWMUSTCHANGE
| Method Detail |
|---|
public SmApiResult getDisabledState(java.util.Vector disabledState)
throws SmApiException
Gets the disabled state of the user account.
For an example of this method, seesetDisabledState().
disabledState - The disabled state is returned
as an Integer in this Vector.
SmApiException
public SmApiResult getDisabledStateNoAdminCheck(java.util.Vector disabledState)
throws SmApiException
SmApiException
public SmApiResult setDisabledState(int disabledState)
throws SmApiException
Sets the disabled state of the user account.
Clients that use the disabled reasons should be aware that:
SmDmsUser user = org.newUser("uid=developer0,ou=people,o=security.com");
Vector vDisabledState = new Vector();
// Get the disabled state.
SmApiResult result = user.getDisabledState (vDisabledState);
if (!result.isSuccess())
{
// failed
System.out.println (result.toString());
return false;
}
// The vector will contain a Integer object whose integer value
// represents the disabled state
Integer iDisabledState = (Integer)vDisabledState.elementAt (0);
// Get the integer value
int disabledState = iDisabledState.intValue();
// Disable the user as an administrator disabled
// Preserve the previous disabled state while disabling a user.
// Clear the previous disabled state while enabling a user.
disabledState = disabledState | SmDmsUser.DMSUSER_DISABLED_ADMINDISABLED;
// Set the disabled state
result = user.setDisabledState (disabledState);
if (!result.isSuccess())
{
// failed to set
System.out.println (result.toString());
return false;
}
return true;
disabledState - The disabled state to assign to the user account.
SmApiException
public SmApiResult setDisabledStateNoAdminCheck(int disabledState)
throws SmApiException
SmApiException
public SmApiResult setEnable()
throws SmApiException
Enables the user account.
Users can't enable their own accounts.
SmApiExceptionsetDisabledState(int)
public SmApiResult setEnableNoAdminCheck()
throws SmApiException
SmApiException
public SmApiResult setDisable()
throws SmApiException
Disables the user account.
Users can't disable their own accounts.
SmApiExceptionsetDisabledState(int)
public SmApiResult setDisableNoAdminCheck()
throws SmApiException
SmApiException
public SmApiResult changePassword(java.lang.String newPassword,
java.lang.String oldPassword,
boolean doNotRequireOldPassword)
throws SmApiException
Changes the user's password.
This method requires an end user session or higher.
newPassword - New user password.oldPassword - Old user password.doNotRequireOldPassword - If true, the password
is changed without verifying whether
oldPassword
matches the user's old password.
If false,
oldPassword must
match the user's old password for the
password to be changed.SmApiResult may contain
one of the reason codes below. These reason codes indicate a violation
of a password policy:SmApiException
public SmApiResult changePasswordNoAdminCheck(java.lang.String newPassword,
java.lang.String oldPassword,
boolean doNotRequireOldPassword)
throws SmApiException
SmApiException
public SmApiResult getUserPWState(SmDmsUserPWState pwState)
throws SmApiException
Retrieves the user's password state.
This method requires an end user session or higher.
pwState - The SmDmsPWState object
where the retrieved attribute values will be placed.
SmApiException
public SmApiResult getUserPWStateNoAdminCheck(SmDmsUserPWState pwState)
throws SmApiException
SmApiException
public SmApiResult setUserPWState(SmDmsUserPWState pwState)
throws SmApiException
Sets the user's password state with any attribute changes
made to the passed SmDmsPWState object.
pwState - The new SmDmsPWState object to set.
SmApiException
public SmApiResult setUserPWStateNoAdminCheck(SmDmsUserPWState pwState)
throws SmApiException
SmApiException
public SmApiResult setUserPWState(SmDmsUserPWState pwState,
boolean emptyPWHistory)
throws SmApiException
Sets the user's password state with any attribute changes
made to the passed SmDmsPWState object. Optionally,
this method also clears the user's password history of all entries.
pwState - The new SmDmsPWState object to set.emptyPWHistory - Set to true to clear the password history.
If you clear password history, the last-password-change-time
attribute is automatically set to 0.
SmApiException
public SmApiResult setUserPWStateNoAdminCheck(SmDmsUserPWState pwState,
boolean emptyPWHistory)
throws SmApiException
SmApiException
public SmApiResult setPasswordMustChange()
throws SmApiException
Forces the user to change his or her password during the next login.
This method requires an end user session or higher.
SmApiException
public SmApiResult setPasswordMustChangeNoAdminCheck()
throws SmApiException
SmApiException
public SmApiResult authenticate(java.lang.String password)
throws SmApiException
Authenticates the user. The result may contain a reason code and message.
This method requires an end user session or higher.
password - Password of this user.
SmApiException
public SmApiResult authenticateNoAdminCheck(java.lang.String password)
throws SmApiException
SmApiException
public SmApiResult getPrivileges(java.util.Hashtable privileges)
throws SmApiException
SmApiException
public SmApiResult getPrivilegesNoAdminCheck(java.util.Hashtable privileges)
throws SmApiException
SmApiException
public SmApiResult getRealmPrivileges(java.lang.String realmOID,
java.util.Hashtable privileges)
throws SmApiException
SmApiException
public SmApiResult getRealmPrivilegesNoAdminCheck(java.lang.String realmOID,
java.util.Hashtable privileges)
throws SmApiException
SmApiException
public SmApiResult getRealmContext(java.lang.String ruleName,
java.lang.String ruleDesc,
java.util.Vector realmContexts)
throws SmApiException
SmApiException
public SmApiResult getRealmContextNoAdminCheck(java.lang.String ruleName,
java.lang.String ruleDesc,
java.util.Vector realmContexts)
throws SmApiException
SmApiException
public SmApiResult addToRole(SmDmsRole role)
throws SmApiException
Adds this user to the specified DMS role.
This method requires an organization administrator session or higher.
role - The role's DN.
SmApiException
public SmApiResult addToRoleNoAdminCheck(SmDmsRole role)
throws SmApiException
SmApiException
public SmApiResult removeFromRole(SmDmsRole role)
throws SmApiException
role - The role's DN.
SmApiException
public SmApiResult removeFromRoleNoAdminCheck(SmDmsRole role)
throws SmApiException
SmApiException
public SmApiResult getRoles(java.util.Vector roles)
throws SmApiException
Gets a list of DMS roles that the user is a member of.
This method requires an end user session or higher.
roles - Vector of Strings in which role DNs will be populated.
SmApiException
public SmApiResult getRolesNoAdminCheck(java.util.Vector roles)
throws SmApiException
SmApiException
|
Java SDK r12.51 Mon 04/08/2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||