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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
long
The number of days a password is valid, after which it must be reset.int
hashCode()
boolean
Whether to force users to reset their passwords ifUser.getPasswordLastUpdated()
is null.void
setForcePasswordResetIfLastUpdatedDateIsNull
(boolean forcePasswordResetIfLastUpdatedDateIsNull) Whether to force users to reset their passwords ifUser.getPasswordLastUpdated()
is null.void
setPasswordMaxLifeDays
(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
-