| | |
| | | */ |
| | | private PasswordPolicy() |
| | | { |
| | | |
| | | configEntryDN = null; |
| | | passwordAttribute = null; |
| | | authPasswordSyntax = false; |
| | |
| | | */ |
| | | public AttributeType getPasswordAttribute() |
| | | { |
| | | |
| | | return passwordAttribute; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean usesAuthPasswordSyntax() |
| | | { |
| | | |
| | | return authPasswordSyntax; |
| | | } |
| | | |
| | |
| | | */ |
| | | public CopyOnWriteArrayList<PasswordStorageScheme> getDefaultStorageSchemes() |
| | | { |
| | | |
| | | return defaultStorageSchemes; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean isDefaultStorageScheme(String name) |
| | | { |
| | | |
| | | CopyOnWriteArrayList<PasswordStorageScheme> defaultSchemes = |
| | | getDefaultStorageSchemes(); |
| | | if (defaultSchemes == null) |
| | |
| | | */ |
| | | public CopyOnWriteArraySet<String> getDeprecatedStorageSchemes() |
| | | { |
| | | |
| | | return deprecatedStorageSchemes; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean isDeprecatedStorageScheme(String name) |
| | | { |
| | | |
| | | CopyOnWriteArraySet<String> deprecatedSchemes = |
| | | getDeprecatedStorageSchemes(); |
| | | if (deprecatedSchemes == null) |
| | |
| | | */ |
| | | public ConcurrentHashMap<DN,PasswordValidator> getPasswordValidators() |
| | | { |
| | | |
| | | return passwordValidators; |
| | | } |
| | | |
| | |
| | | public ConcurrentHashMap<DN,AccountStatusNotificationHandler> |
| | | getAccountStatusNotificationHandlers() |
| | | { |
| | | |
| | | return notificationHandlers; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean allowUserPasswordChanges() |
| | | { |
| | | |
| | | return allowUserPasswordChanges; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean requireCurrentPassword() |
| | | { |
| | | |
| | | return requireCurrentPassword; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean forceChangeOnAdd() |
| | | { |
| | | |
| | | return forceChangeOnAdd; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean forceChangeOnReset() |
| | | { |
| | | |
| | | return forceChangeOnReset; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean skipValidationForAdministrators() |
| | | { |
| | | |
| | | return skipValidationForAdministrators; |
| | | } |
| | | |
| | |
| | | */ |
| | | public DN getPasswordGeneratorDN() |
| | | { |
| | | |
| | | return passwordGeneratorDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public PasswordGenerator getPasswordGenerator() |
| | | { |
| | | |
| | | return passwordGenerator; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean requireSecureAuthentication() |
| | | { |
| | | |
| | | return requireSecureAuthentication; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean requireSecurePasswordChanges() |
| | | { |
| | | |
| | | return requireSecurePasswordChanges; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean allowMultiplePasswordValues() |
| | | { |
| | | |
| | | return allowMultiplePasswordValues; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean allowPreEncodedPasswords() |
| | | { |
| | | |
| | | return allowPreEncodedPasswords; |
| | | } |
| | | |
| | |
| | | */ |
| | | public int getMinimumPasswordAge() |
| | | { |
| | | |
| | | if (minimumPasswordAge <= 0) |
| | | { |
| | | return 0; |
| | |
| | | */ |
| | | public int getMaximumPasswordAge() |
| | | { |
| | | |
| | | if (maximumPasswordAge < 0) |
| | | { |
| | | return 0; |
| | |
| | | */ |
| | | public int getMaximumPasswordResetAge() |
| | | { |
| | | |
| | | if (maximumPasswordResetAge < 0) |
| | | { |
| | | return 0; |
| | |
| | | */ |
| | | public int getWarningInterval() |
| | | { |
| | | |
| | | if (warningInterval < 0) |
| | | { |
| | | return 0; |
| | |
| | | */ |
| | | public boolean expirePasswordsWithoutWarning() |
| | | { |
| | | |
| | | return expirePasswordsWithoutWarning; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean allowExpiredPasswordChanges() |
| | | { |
| | | |
| | | return allowExpiredPasswordChanges; |
| | | } |
| | | |
| | |
| | | */ |
| | | public int getGraceLoginCount() |
| | | { |
| | | |
| | | if (graceLoginCount < 0) |
| | | { |
| | | return 0; |
| | |
| | | */ |
| | | public int getLockoutFailureCount() |
| | | { |
| | | |
| | | if (lockoutFailureCount < 0) |
| | | { |
| | | return 0; |
| | |
| | | */ |
| | | public int getLockoutDuration() |
| | | { |
| | | |
| | | if (lockoutDuration < 0) |
| | | { |
| | | return 0; |
| | |
| | | */ |
| | | public int getLockoutFailureExpirationInterval() |
| | | { |
| | | |
| | | if (lockoutFailureExpirationInterval < 0) |
| | | { |
| | | return 0; |
| | |
| | | */ |
| | | public long getRequireChangeByTime() |
| | | { |
| | | |
| | | if (requireChangeByTime < 0) |
| | | { |
| | | return 0; |
| | |
| | | */ |
| | | public AttributeType getLastLoginTimeAttribute() |
| | | { |
| | | |
| | | return lastLoginTimeAttribute; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getLastLoginTimeFormat() |
| | | { |
| | | |
| | | return lastLoginTimeFormat; |
| | | } |
| | | |
| | |
| | | */ |
| | | public CopyOnWriteArrayList<String> getPreviousLastLoginTimeFormats() |
| | | { |
| | | |
| | | return previousLastLoginTimeFormats; |
| | | } |
| | | |
| | |
| | | */ |
| | | public int getIdleLockoutInterval() |
| | | { |
| | | |
| | | if (idleLockoutInterval < 0) |
| | | { |
| | | return 0; |
| | |
| | | */ |
| | | public String toString() |
| | | { |
| | | |
| | | StringBuilder buffer = new StringBuilder(); |
| | | toString(buffer); |
| | | return buffer.toString(); |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | |
| | | buffer.append("Password Attribute: "); |
| | | buffer.append(passwordAttribute.getNameOrOID()); |
| | | buffer.append(EOL); |