Class UserPasswordProperties
java.lang.Object
com.broadleafcommerce.auth.user.autoconfigure.UserPasswordProperties
@ConfigurationProperties(prefix="broadleaf.auth.user.password")
public class UserPasswordProperties
extends Object
Properties to configure certain password settings.
- Author:
- Nathan Moore (nathandmoore)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanlongThe number of days a password is valid, after which it must be reset.inthashCode()booleanWhether to force users to reset their passwords ifUser.getPasswordLastUpdated()is null.voidsetForcePasswordResetIfLastUpdatedDateIsNull(boolean forcePasswordResetIfLastUpdatedDateIsNull) Whether to force users to reset their passwords ifUser.getPasswordLastUpdated()is null.voidsetPasswordMaxLifeDays(long passwordMaxLifeDays) The number of days a password is valid, after which it must be reset.toString()
-
Constructor Details
-
UserPasswordProperties
public UserPasswordProperties()
-
-
Method Details
-
getPasswordMaxLifeDays
public long getPasswordMaxLifeDays()The number of days a password is valid, after which it must be reset. Zero indicate no limit. -
isForcePasswordResetIfLastUpdatedDateIsNull
public boolean isForcePasswordResetIfLastUpdatedDateIsNull()Whether to force users to reset their passwords ifUser.getPasswordLastUpdated()is null. This can happen for users created before that field was introduced. -
setPasswordMaxLifeDays
public void setPasswordMaxLifeDays(long passwordMaxLifeDays) The number of days a password is valid, after which it must be reset. Zero indicate no limit. -
setForcePasswordResetIfLastUpdatedDateIsNull
public void setForcePasswordResetIfLastUpdatedDateIsNull(boolean forcePasswordResetIfLastUpdatedDateIsNull) Whether to force users to reset their passwords ifUser.getPasswordLastUpdated()is null. This can happen for users created before that field was introduced. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-