|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IUserAccount
Interface to get and set user account data. Copyright (c) 2001 Company: SAPMarkets, Inc
NOTE: get methods returning an object may return null if a valid value is not available unless specified otherwise in the respective method description. As this interface�can be extended, this interface can be freely used, but must not be implemented.
| Field Summary | |
|---|---|
static int |
LOCKED_AUTO
|
static int |
LOCKED_BY_ADMIN
|
static int |
LOCKED_NO
|
static String |
SECURITY_POLICY
|
static String |
SECURITY_POLICY_TYPE_DEFAULT
|
static String |
SECURITY_POLICY_TYPE_TECHNICAL
|
static String |
SECURITY_POLICY_TYPE_UNKNOWN
|
| Fields inherited from interface com.sap.security.api.IPrincipal |
|---|
BYTE_TYPE, CREATED_BY, DATASOURCE, DEFAULT_NAMESPACE, DEFAULT_RELATION_NAMESPACE, DESCRIPTION, DISPLAYNAME, LAST_MODIFIED_BY, PRINCIPAL_CREATION_DATE, PRINCIPAL_MODIFY_DATE, PRINCIPAL_RELATION_MEMBER_ATTRIBUTE, PRINCIPAL_RELATION_PARENT_ATTRIBUTE, STRING_TYPE, TRANSIENT_NAMESPACE, UNIQUE_NAME, VERSIONSTRING |
| Method Summary | |
|---|---|
void |
addToGroup(String uniqueIdOfGroup)
Deprecated. use IUserMaint.addToGroup(String) instead |
void |
addToRole(String uniqueIdOfRole)
Deprecated. use IUserMaint.addToRole(String) instead |
boolean |
checkPassword(String pass)
compares the stored password with the input password Note: Use IUserAccount.isPasswordDisabled() before calling this. |
int |
checkPasswordExtended(String pass)
compares the stored password with the input password Possible return values are: ILoginConstants.CHECKPWD_OK ILoginConstants.CHECKPWD_WRONGPWD ILoginConstants.CHECKPWD_NOPWD ILoginConstants.CHECKPWD_PWDLOCKED ILoginConstants.CHECKPWD_PWDEXPIRED |
Date |
created()
returns the creation date of this user account |
void |
deleteCertificates(X509Certificate[] certificate)
Deletes the user's certificate |
IUser |
getAssignedUser()
get the user that belongs to this account |
String |
getAssignedUserID()
Gets the unique id of the user which is assigned to this account. |
X509Certificate[] |
getCertificates()
Returns the user's certificates |
int |
getFailedLogonAttempts()
get number of failed logon attempts. |
String |
getHashedPassword()
|
Date |
getLastFailedLogonDate()
get last failed logon time |
Date |
getLastPasswordChangedDate()
Gets the LastPasswordChangedDate attribute of the IUserAccount object |
Date |
getLastSuccessfulLogonDate()
Deprecated. |
int |
getLockReason()
Deprecated. use isPasswordLocked() and isUserAccountLocked() instead |
String |
getLogonUid()
get logon uid (long uid) |
Iterator |
getParentGroups(boolean recursive)
Gets the list of all parent principals including parents, grandparents, ... |
Date |
getPreviousSuccessfulLogonDate()
Deprecated. |
Iterator |
getRoles(boolean recursive)
Gets the list of all assigned roles of this principal including parent groups, grandparent groups,... |
String |
getSecurityPolicy()
Gets the security policy which is assigned to this account. |
int |
getSuccessfulLogonCounts()
Deprecated. |
Date |
getValidFromDate()
get valid from date |
Date |
getValidToDate()
get valid to date |
void |
incrementFailedLogonAttempts()
set the number of failed logon attemps by a parameter |
void |
incrementSuccessfulLogonCounts()
Deprecated. |
boolean |
isLocked()
Deprecated. use isPasswordLocked() and isUserAccountLocked() instead |
boolean |
isMemberOfGroup(String uniqueIdOfGroup,
boolean recursive)
Checks if the principal belongs to the passed groupId |
boolean |
isMemberOfRole(String roleId,
boolean recursive)
Checks if the principal belongs to the passed roleId This method does a recursive search, so if this principal belongs to a collection which is a member of this collection, true is returned. |
boolean |
isPasswordChangeRequired()
indicator the need of force change password on next logon default: false if true, user need to change logon password on next logon |
boolean |
isPasswordDisabled()
Checks whether the password is disabled. |
boolean |
isPasswordLocked()
Gets the password locked attribute of the IUserAccount object |
boolean |
isUserAccountLocked()
Gets the locked attribute of the IUserAccount object |
Date |
lastModified()
returns the last modification date of this user account |
Date |
lockDate()
returns lock date |
void |
removeFromGroup(String uniqueIdOfGroup)
Deprecated. use IUserMaint.removeFromGroup(String) instead |
void |
removeFromRole(String uniqueIdOfRole)
Deprecated. use IUserMaint.removeFromRole(String) instead |
void |
resetFailedLogonAttempts()
Description of the Method |
void |
setCertificates(X509Certificate[] certificate)
Stores the user's certificate and creates a mapping |
void |
setFailedLogonAttempts(int i)
increase the number of failed logon attempts by 1 |
void |
setLastFailedLogonDate(Date timeStamp)
set last logon time |
void |
setLastLogoutDate(Date timeStamp)
set last logout date |
void |
setLastSuccessfulLogonDate(Date timeStamp)
Deprecated. |
void |
setLocked(boolean lock,
int reason)
Sets the locked attribute of the IUserAccount object |
void |
setPassword(String pass)
Changes user password to newpass. |
void |
setPassword(String oldpass,
String newpass)
Changes user password from oldpass to newpass. |
void |
setPasswordChangeRequired(boolean chng)
Sets the PasswordChangeRequired attribute of the IUserAccount object. |
void |
setPasswordDisabled()
Disables the password. |
void |
setSecurityPolicy(String uniqueName)
assign new security policy to this account |
void |
setSuccessfulLogonCounts(int i)
Deprecated. |
void |
setValidFromDate(Date date)
Sets the ValidFromDate attribute of the IUserAccount object |
void |
setValidToDate(Date date)
Sets the ValidToDate attribute of the IUserAccount object |
| Methods inherited from interface com.sap.security.api.IPrincipalMaint |
|---|
addAttributeValue, commit, isModified, removeAttributeValue, rollback, save, setAttribute, setBinaryAttribute, setDisplayName |
| Methods inherited from interface com.sap.security.api.IPrincipal |
|---|
equals, getAttribute, getAttributeNames, getAttributeNamespaces, getAttributeType, getBinaryAttribute, getDisplayName, getMessages, getParents, getUniqueID, hashCode, isExistenceChecked, isMutable, refresh |
| Field Detail |
|---|
static final int LOCKED_NO
static final int LOCKED_AUTO
static final int LOCKED_BY_ADMIN
static final String SECURITY_POLICY
static final String SECURITY_POLICY_TYPE_DEFAULT
static final String SECURITY_POLICY_TYPE_TECHNICAL
static final String SECURITY_POLICY_TYPE_UNKNOWN
| Method Detail |
|---|
String getLogonUid()
Date getValidFromDate()
void setValidFromDate(Date date)
date - The new ValidFromDate valueDate getValidToDate()
IUser getAssignedUser()
throws UMException
UMExceptionvoid setValidToDate(Date date)
date - The new ValidToDate valueboolean isLocked()
isPasswordLocked() and isUserAccountLocked() instead
true if the user account is locked
void setLocked(boolean lock,
int reason)
lock - the lock valuereason - specifies the lock reasonint getLockReason()
isPasswordLocked() and isUserAccountLocked() instead
Date getLastFailedLogonDate()
void setLastFailedLogonDate(Date timeStamp)
timeStamp - The new LastFailedLogonDate valueint getFailedLogonAttempts()
void setFailedLogonAttempts(int i)
i - The new FailedLogonAttempts valuevoid incrementFailedLogonAttempts()
void resetFailedLogonAttempts()
Date getLastSuccessfulLogonDate()
void setLastSuccessfulLogonDate(Date timeStamp)
timeStamp - The new LastSuccessfulLogonDate valueint getSuccessfulLogonCounts()
void incrementSuccessfulLogonCounts()
void setSuccessfulLogonCounts(int i)
i - The new SuccessfulLogonCounts valueboolean isPasswordChangeRequired()
Date getLastPasswordChangedDate()
void setPasswordChangeRequired(boolean chng)
Note:
Attribute com.sap.security.core.usermanagement|->passwordchangerequired
can only be modified by changing or resetting the password if any
datasource of class com.sap.security.core.persistence.datasource.imp.R3Persistence
is responsible for writing it.
The exception may be raised in following cases
IUserAccount.commit() may raise UMException
for SAP System user with following exception text:
setPassword(String, String)
or setPassword(String) in the same
IPrincipalMaint.commit() transaction.
setPasswordChangeRequired and
setPassword(...)
is used:
setPassword(String) and setPasswordChangeRequired(false) setPassword(String, String) and setPasswordChangeRequired(true)
chng - The new PasswordChangeRequired value
boolean isPasswordDisabled()
void setPasswordDisabled()
void setPassword(String pass)
throws InvalidPasswordException
pass - The new Password value
InvalidPasswordException
void setPassword(String oldpass,
String newpass)
throws InvalidPasswordException
oldpass - The new Password valuenewpass - The new Password value
InvalidPasswordException
X509Certificate[] getCertificates()
throws CertificateException,
UMException
null if the user doesn't have certificates
CertificateException - Description of Exception
UMException - UMException is thrown
is getCertificates operation is failed for some reason
void setCertificates(X509Certificate[] certificate)
throws CertificateException,
UMException
certificate - array of allowed certifiates, pass
null to remove existing mapping
CertificateException - Description of Exception
UMException - UMException is thrown
is setCertificates operation is failed for some reason
void deleteCertificates(X509Certificate[] certificate)
throws CertificateException,
UMException
certificate - array of allowed certifiates, pass
null to remove existing mapping
CertificateException - Description of Exception
UMException - UMException is thrown
is setCertificates operation is failed for some reasonboolean checkPassword(String pass)
pass - Password string
int checkPasswordExtended(String pass)
throws UMException
pass - Password string
UMExceptionDate created()
created in interface IPrincipalnull if creation date is not availableDate lastModified()
lastModified in interface IPrincipalnull if last modification date is not availableDate lockDate()
String getHashedPassword()
throws UMException
FeatureNotAvailableException - if feature is not implemented
UMExceptionvoid setLastLogoutDate(Date timeStamp)
timeStamp - The new LastSuccessfulLogonDate value
if timeStamp is null a new Date object will be allocated
and measured to the nearest millisecond.Date getPreviousSuccessfulLogonDate()
Iterator getRoles(boolean recursive)
recursive - if true returns all parent roles
Iterator getParentGroups(boolean recursive)
boolean isMemberOfRole(String roleId,
boolean recursive)
roleId - the ID of the role
boolean isMemberOfGroup(String uniqueIdOfGroup,
boolean recursive)
uniqueIdOfGroup - the ID of the grouprecursive - This method does a recursive search, so if this principal belongs to a
collection which is a member of this collection, true is returned.
returns true if the principal is directly or indirectly (via role membership)
assigned.
void addToGroup(String uniqueIdOfGroup)
throws UMException
IUserMaint.addToGroup(String) instead
uniqueIdOfGroup - id of the group
UMException
void removeFromGroup(String uniqueIdOfGroup)
throws UMException
IUserMaint.removeFromGroup(String) instead
uniqueIdOfGroup - id of the parent group
UMException
void addToRole(String uniqueIdOfRole)
throws UMException
IUserMaint.addToRole(String) instead
uniqueIdOfRole - id of the role
UMException
void removeFromRole(String uniqueIdOfRole)
throws UMException
IUserMaint.removeFromRole(String) instead
uniqueIdOfRole - id of the role
UMExceptionboolean isPasswordLocked()
true if the user account is lockedboolean isUserAccountLocked()
true if the user account is lockedString getAssignedUserID()
String getSecurityPolicy()
void setSecurityPolicy(String uniqueName)
throws UMException
uniqueName - the uniqueName of the security policy
NoSuchPrincipalException - if no SecurityPolicy with the given uniqueName
exists
UMException - if given unique name is not unique| Access Rights |
|---|
| SC | DC |
|---|---|
[sap.com] ENGINEAPI
|
[sap.com] com.sap.security.api.sda
|
[sap.com] ENGFACADE
|
[sap.com] tc/je/usermanagement/api
|
[sap.com] CORE-TOOLS
|
[sap.com] com.sap.engine.client.lib
|
|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||