Try OpenEdge Now
skip to main content
Customization Guide
Customizing password security : IPasswordSecurityData
 

IPasswordSecurityData

The following table provides you a brief description about the methods related to each policy provided in each of the interfaces.

Policy and methods

Table 7. Policy and methods
Policy
Method
Description
Change At First Login
isChangeAtFirstLogin()
Checks if the policy to change the password at first login is enabled.
Password Expiration/Longevity
isLongevityEnabled()
Checks if the password longevity is enabled.
getLongevity(int type)
Provides the validity (in days) of the specified password type.
Notification on Password Expiration
isNotifyEnabled()
Checks if the policy to notify the user about the password expiration.
getNotifyBeforeExpiration()
Returns the days before password expiration notification is to be send.
It is recommended to use the following XML to manage the above data in their custom implementation so that it will be consistent with the metadata.
<Policies>
<ChangeAtFirstLogin enable="true"/>
<Longevity enable="true">
<PasswordExpiration type="user" afterDays="90">
</Longevity>
<Notify enable="true">
<BeforeExpiration days="3"/>
</Notify>
</Policies>
Important: The custom implementation should handle the reading and setting of the appropriate values in the implementation class.