|
SAP NetWeaver 7.1 Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISecurityPolicy
This interface handles UME Security Policy settings. Note: It is not possible to change the current security policy settings with the setter methods at runtime. If you want to change these settings, change the configuration and restart the server.
| Method Summary | |
|---|---|
String |
generateLogonId()
Generate a logon id for this security policy. |
String |
generatePassword()
Generate a password for this security policy. |
String |
generatePassword(String userid)
Generate a password for this security policy. |
int |
getAutoUnlockTime()
Gets the AutoUnlockTime(in seconds) attribute of the ISecurityPolicy object |
boolean |
getCertLogonRequired()
Deprecated. |
int |
getCookieLifeTime()
Deprecated. |
boolean |
getEnforcePolicyAtLogon()
Returns a boolean indicating whether users who have a productive password that doesn't match the security policy settings have to change it during password logon. |
String |
getLocalizedMessage(Locale locale,
Exception ex)
Return a localized password exception message for the given key. |
String |
getLocalizedMessage(Locale locale,
String key)
Return a localized password exception message for the given key. |
int |
getLockAfterInvalidAttempts()
Gets the Number of Allowed Logon Attempts (AllowedLogonAttempts) attribute of the ISecurityPolicy object |
int |
getLogonIdLowerCaseRequired()
Return a number indicating how many capical and lower case letters the logon id must contain. |
int |
getLogonIdMaxLength()
Return the integer value indicating the maximum length of a logon id. |
int |
getLogonIdMinLength()
Return the integer value indicating the minimum length of a logon id. |
int |
getLogonIdNumericDigitsRequired()
Return the number indicating how many alphabets and numeric values the logon id must contain. |
int |
getLogonIdSpecialCharRequired()
Return a number indicating how many special characters the logon id must contain. |
boolean |
getOldInNewAllowed()
Return a boolean indicating whether the password need to be different from the old password. |
int |
getPasswordAlphaNumericRequired()
Return the number indicating how many alphabets and numeric values the password must contain. |
boolean |
getPasswordChangeAllowed()
Return the boolean value indicating whether the password is allowed to be changed. |
boolean |
getPasswordChangeRequired()
Deprecated. |
int |
getPasswordExpiredDays()
Return the numbers of days the password is set to expired. |
int |
getPasswordHistory()
Gets the PasswordHistory attribute of the SecurityPolicy object. |
Date |
getPasswordLastChangeDateDefault()
Returns the PasswordLastChangeDateDefault (MM/DD/YYYY) attribute of the ISecurityPolicy object. |
int |
getPasswordMaxIdleTime()
Returns the PasswordMaxIdleTime(in days) attribute of the ISecurityPolicy object. |
int |
getPasswordMaxLength()
Gets the Password Maximum Length(PasswordMaxLength) attribute of the ISecurityPolicy object |
int |
getPasswordMinLength()
Gets the Password Minimum Length(PasswordMinLength) attribute of the ISecurityPolicy object |
int |
getPasswordMixCaseRequired()
Return a number indicating how many capical and lower case letters the password must contain. |
int |
getPasswordSpecialCharRequired()
Return the number indicating how many special characters the password must contain. |
Date |
getPasswordSuccessfulCheckDateDefault()
Returns the PasswordSuccessfulCheckDateDefault attribute of the ISecurityPolicy object. |
boolean |
getUseridInPasswordAllowed()
Return a boolean indicating whether the password need to be different from the user id(uid). |
boolean |
isLogonIdValid(String logonId)
Check the validity of the logon id against the security policy |
boolean |
isPasswordValid(String pass)
Deprecated. please use isPasswordValid(String pass, String logonId) |
boolean |
isPasswordValid(String pass,
String logonId)
Check the validity of the password against the password policy |
void |
setAutoUnlockTime(int time)
Deprecated. |
void |
setCertLogonRequired(boolean clr)
Deprecated. |
void |
setCookieLifeTime(int lifeTime)
Deprecated. |
void |
setEnforcePolicyAtLogon(boolean enforcePolicyAtLogon)
Sets whether users who have a productive password that doesn't match the security policy settings have to change it during password logon. |
void |
setLockAfterInvalidAttempts(int count)
Deprecated. |
void |
setLogonIdLowerCaseRequired(int number)
Deprecated. |
void |
setLogonIdMaxLength(int length)
Deprecated. |
void |
setLogonIdMinLength(int length)
Deprecated. |
void |
setLogonIdNumericDigitsRequired(int number)
Deprecated. |
void |
setLogonIdSpecialCharRequired(int number)
Deprecated. |
void |
setOldInNewAllowed(boolean allow)
Deprecated. |
void |
setPasswordAlphaNumericRequired(int number)
Deprecated. |
void |
setPasswordChangeAllowed(boolean pca)
Deprecated. |
void |
setPasswordChangeRequired(boolean pca)
Deprecated. |
void |
setPasswordExpiredDays(int days)
Deprecated. |
void |
setPasswordHistory(int length)
Deprecated. |
void |
setPasswordMaxIdleTime(int time)
Deprecated. |
void |
setPasswordMaxLength(int length)
Deprecated. |
void |
setPasswordMinLength(int length)
Deprecated. |
void |
setPasswordMixCaseRequired(int number)
Deprecated. |
void |
setPasswordPasswordLastChangeDateDefault(Date newDate)
Deprecated. |
void |
setPasswordSpecialCharRequired(int number)
Deprecated. |
void |
setPasswordSuccessfulCheckDateDefault(Date newDate)
Deprecated. |
void |
setUseridInPasswordAllowed(boolean pwnur)
Deprecated. |
void |
setUserName(String id)
Deprecated. |
String |
validatePassword(String pass)
Deprecated. please use validatePassword(String pass, String uid) |
String |
validatePassword(String pass,
String uid)
Check the validity of the password against the password policy. |
| Field Detail |
|---|
static final String ACCOUNT_LOCKED_ADMIN
static final String ACCOUNT_LOCKED_LOGON
static final String ALPHANUM_REQUIRED_FOR_PSWD
static final String CERT_GET_ERROR
static final String CERT_NOT_UNIQUE
static final String CHANGE_PASSWORD_NOT_ALLOWED
static final String MISSING_NEW_PASSWORD
static final String MISSING_PASSWORD
static final String MISSING_PASSWORD_CONFIRM
static final String MISSING_UID
static final String MIXED_CASE_REQUIRED_FOR_PSWD
static final String NEW_PASSWORD_INVALID
static final String NEW_PASSWORDS_UNMATCHED
static final String NO_CERTIFICATE
static final String NO_USER_CERTIFICATE
static final String NUMERIC_REQUIRED
static final String OLDPASSWORD_IN_NEWPASSWORD
static final String PASSWORD_CONTAINED_IN_HISTORY
static final String PASSWORD_EXPIRED
static final String PASSWORD_MAX_IDLE_TIME_EXCEEDED
static final String PASSWORD_TOO_LONG
static final String PASSWORD_TOO_SHORT
static final String SAPSTAR_ACTIVATED
static final String SPEC_CHARS_REQUIRED_FOR_PSWD
static final String USER_AUTH_FAILED
static final String USER_IS_CURRENTLY_NOT_VALID
static final String USERID_CONTAINED_IN_PASSWORD
static final String USERID_NOT_FOUND
static final String WRONG_OLD_PASSWORD
static final String WRONG_PASSWORD
static final String LOGONID_IS_NULL
static final String LOGONID_TOO_LONG
static final String LOGONID_TOO_SHORT
static final String WHITESPACES_NOT_ALLOWED
static final String SPEC_CHARS_REQUIRED_FOR_LOGONID
static final String MIXED_CASE_REQUIRED_FOR_LOGONID
static final String ALPHANUM_REQUIRED_FOR_LOGONID
| Method Detail |
|---|
Date getPasswordSuccessfulCheckDateDefault()
void setPasswordSuccessfulCheckDateDefault(Date newDate)
newDate - The new PasswordSuccessfulCheckDateDefault valuevoid setPasswordPasswordLastChangeDateDefault(Date newDate)
newDate - The new PasswordLastChangeDateDefault valueDate getPasswordLastChangeDateDefault()
void setPasswordMaxIdleTime(int time)
time - The new PasswordMaxIdleTime valueint getPasswordMaxIdleTime()
boolean isPasswordValid(String pass)
throws InvalidPasswordException
pass - password to check
InvalidPasswordException
boolean isPasswordValid(String pass,
String logonId)
throws InvalidPasswordException
pass - password to checklogonId - logonID to check against the password.
InvalidPasswordExceptionString validatePassword(String pass)
pass - password to check
null
String validatePassword(String pass,
String uid)
pass - password to check
nullString generatePassword()
String generatePassword(String userid)
userid - the user id to generate a password for
int getLockAfterInvalidAttempts()
void setLockAfterInvalidAttempts(int count)
count - The new AllowedLogonAttempts valueint getAutoUnlockTime()
void setAutoUnlockTime(int time)
time - The new AutoUnlockTime valueint getPasswordMinLength()
void setPasswordMinLength(int length)
length - The new PasswordMinLength valueint getPasswordMaxLength()
void setPasswordMaxLength(int length)
length - The new PasswordMaxLength valueboolean getUseridInPasswordAllowed()
void setUseridInPasswordAllowed(boolean pwnur)
pwnur - a boolean indicating whether the password need to be different
from the user id(uid).boolean getOldInNewAllowed()
boolean getEnforcePolicyAtLogon()
void setEnforcePolicyAtLogon(boolean enforcePolicyAtLogon)
enforcePolicyAtLogon - specifies whether the plolicy is enforced at logon or not.void setOldInNewAllowed(boolean allow)
allow - a boolean indicating whether the password need to be different
from old password.int getPasswordMixCaseRequired()
void setPasswordMixCaseRequired(int number)
number - the number of both capical and lower case letters.int getLogonIdLowerCaseRequired()
void setLogonIdLowerCaseRequired(int number)
number - the number of both capical and lower case letters.int getPasswordAlphaNumericRequired()
void setPasswordAlphaNumericRequired(int number)
number - the number of required both alphabets and numeric values.int getLogonIdNumericDigitsRequired()
void setLogonIdNumericDigitsRequired(int number)
number - the number of required both alphabets and numeric values.int getPasswordSpecialCharRequired()
void setPasswordSpecialCharRequired(int number)
number - the number of required special characters.int getPasswordExpiredDays()
int getPasswordHistory()
void setPasswordExpiredDays(int days)
days - The numbers of days the password is set to expiredvoid setPasswordHistory(int length)
length - The new PasswordHistory valueboolean getPasswordChangeAllowed()
void setPasswordChangeAllowed(boolean pca)
pca - The boolean value indicating whether the password is allowed to
changedboolean getPasswordChangeRequired()
void setPasswordChangeRequired(boolean pca)
pca - The boolean value indicating whether the password is enforced to
changeint getLogonIdMinLength()
void setLogonIdMinLength(int length)
length - integer value indicating the minimum length of a logon id.int getLogonIdMaxLength()
void setLogonIdMaxLength(int length)
length - integer value indicating the maximum length of a logon id.int getLogonIdSpecialCharRequired()
void setLogonIdSpecialCharRequired(int number)
number - the number of special characters.
boolean isLogonIdValid(String logonId)
throws InvalidLogonIdException
logonId - logonid to check
InvalidLogonIdException - if the logon id is invalid
String generateLogonId()
throws InvalidLogonIdException
InvalidLogonIdException - if security policy configuration
cannot be fullfilledboolean getCertLogonRequired()
void setCertLogonRequired(boolean clr)
int getCookieLifeTime()
void setCookieLifeTime(int lifeTime)
void setUserName(String id)
String getLocalizedMessage(Locale locale,
Exception ex)
locale - the localeex - the exception which hold the key as message
String getLocalizedMessage(Locale locale,
String key)
locale - the localekey - the key
|
SAP NetWeaver 7.1 Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||