org.eclipse.stardust.engine.api.runtime
Interface PasswordRules

All Superinterfaces:
Serializable

public interface PasswordRules
extends Serializable

Version:
$Revision: $
Author:
Barry.Grotjahn

Method Summary
 int getDifferentCharacters()
          Gets the number of minimum different characters in the new password compared to previous passwords.
 int getDigits()
          Gets the minimum number of Digits in new password.
 int getDisableUserTime()
          Gets the days after the user will be disabled (after password expired).
 int getExpirationTime()
          Return number of days after the password will expire (starting from day the current pasword was set).
 int getLetters()
          Gets the minimum number of Letters in new password.
 int getMinimalPasswordLength()
          Gets the minimum password length.
 int getMixedCase()
          Gets the number for mixed case characters.
 int getNotificationMails()
          Check if notification mails should be send.
 int getPasswordTracking()
          Check if password tracking is enabled.
 int getPunctuation()
          Sets the minimum number of punctuation characters ('!"$%&#()=?+/*) in new password.
 boolean isForcePasswordChange()
          Checks if force password change flag is set.
 boolean isStrongPassword()
          Checks if strong password flag is set.
 boolean isUniquePassword()
          Checks if flag for unique password is set.
 void setDifferentCharacters(int length)
          Sets the number of minimum different characters in the new password compared to previous passwords.
 void setDigits(int length)
          Sets the minimum number of Digits in new password.
 void setDisableUserTime(int days)
          Sets the days after the user will be disabled (after password expired).
 void setExpirationTime(int days)
          Sets the days a new password will be valid.
 void setForcePasswordChange(boolean forcePasswordChange)
          Set force password change flag.
 void setLetters(int length)
          Sets the minimum number of Letters in new password.
 void setMinimalPasswordLength(int length)
          Sets the minimum password length.
 void setMixedCase(int length)
          The password needs to include at least n lowercase (a-z) and n uppercase (A-Z) characters.
 void setNotificationMails(int days)
          Enables when notification mail should be send out before password expires.
 void setPasswordTracking(int number)
          Enables password tracking if value is > 0.
 void setPunctuation(int length)
          Sets the minimum number of punctuation characters ('!"$%&#()=?+/*) in new password.
 void setStrongPassword(boolean strongPassword)
          Set strong password flag.
 void setUniquePassword(boolean uniquePassword)
          Set unique password flag.
 

Method Detail

isUniquePassword

boolean isUniquePassword()
Checks if flag for unique password is set.

Returns:
if is enabled.

setUniquePassword

void setUniquePassword(boolean uniquePassword)
Set unique password flag. The flag is the super flag if to compare passwords with previous passwords.

Parameters:
uniquePassword - true for unique passwords, otherwise false

isForcePasswordChange

boolean isForcePasswordChange()
Checks if force password change flag is set.

Returns:
if is enabled.

setForcePasswordChange

void setForcePasswordChange(boolean forcePasswordChange)
Set force password change flag. The flag is the super flag if passwords will expire.

Parameters:
forcePasswordChange - true to force password changes, otherwise false

isStrongPassword

boolean isStrongPassword()
Checks if strong password flag is set.

Returns:
if is enabled.

setStrongPassword

void setStrongPassword(boolean strongPassword)
Set strong password flag. The flag is the super flag if to follow password rules.

Parameters:
strongPassword - true to force strong passwords that applies to a given rule, otherwise false

setNotificationMails

void setNotificationMails(int days)
Enables when notification mail should be send out before password expires. If days is set to 0 no mails will be send.

Parameters:
days - Number of days before password expires.

getNotificationMails

int getNotificationMails()
Check if notification mails should be send.

Returns:
Number of days before password expires or 0.

setPasswordTracking

void setPasswordTracking(int number)
Enables password tracking if value is > 0. If password tracking is enabled store a number of previous passwords. The new password should not be one of the stored previous passwords.

Parameters:
number - Number of old passwords to store.

getPasswordTracking

int getPasswordTracking()
Check if password tracking is enabled.

Returns:
Number of passwords to track.

setExpirationTime

void setExpirationTime(int days)
Sets the days a new password will be valid.

Parameters:
days - Number of days.

getExpirationTime

int getExpirationTime()
Return number of days after the password will expire (starting from day the current pasword was set).

Returns:
Number of days.

setDisableUserTime

void setDisableUserTime(int days)
Sets the days after the user will be disabled (after password expired).

Parameters:
days - Number of days (-1 will never disable the user).

getDisableUserTime

int getDisableUserTime()
Gets the days after the user will be disabled (after password expired).

Returns:
Number of days.

setDifferentCharacters

void setDifferentCharacters(int length)
Sets the number of minimum different characters in the new password compared to previous passwords.

Parameters:
length - Number of different characters.

getDifferentCharacters

int getDifferentCharacters()
Gets the number of minimum different characters in the new password compared to previous passwords.

Returns:
Number.

setMinimalPasswordLength

void setMinimalPasswordLength(int length)
Sets the minimum password length.

Parameters:
length - Length.

getMinimalPasswordLength

int getMinimalPasswordLength()
Gets the minimum password length.

Returns:
Length.

setLetters

void setLetters(int length)
Sets the minimum number of Letters in new password.

Parameters:
length - Number.

getLetters

int getLetters()
Gets the minimum number of Letters in new password.

Returns:
Number.

setDigits

void setDigits(int length)
Sets the minimum number of Digits in new password.

Parameters:
length - Number.

getDigits

int getDigits()
Gets the minimum number of Digits in new password.

Returns:
Number.

setMixedCase

void setMixedCase(int length)
The password needs to include at least n lowercase (a-z) and n uppercase (A-Z) characters.

Parameters:
length - Number.

getMixedCase

int getMixedCase()
Gets the number for mixed case characters.

Returns:
Number.

setPunctuation

void setPunctuation(int length)
Sets the minimum number of punctuation characters ('!"$%&#()=?+/*) in new password.

Parameters:
length - Number.

getPunctuation

int getPunctuation()
Sets the minimum number of punctuation characters ('!"$%&#()=?+/*) in new password.

Returns:
Number.


Copyright © 2017 Eclipse Stardust. All Rights Reserved.