Class PasswordCredential
- java.lang.Object
-
- pl.edu.icm.unity.stdext.credential.pass.PasswordCredential
-
public class PasswordCredential extends java.lang.ObjectRepresents business object of password credential. Supports (de)serialization of the state to/from JSON.- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description static longMAX_AGE_UNDEF
-
Constructor Summary
Constructors Constructor Description PasswordCredential()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHistorySize()longgetMaxAge()intgetMinClassesNum()intgetMinLength()intgetMinScore()PasswordCredentialResetSettingsgetPasswordResetSettings()ScryptParamsgetScryptParams()com.fasterxml.jackson.databind.node.ObjectNodegetSerializedConfiguration()booleanhasStrongerRequirementsThen(PasswordCredential other)booleanisAllowLegacy()booleanisDenySequences()voidsetAllowLegacy(boolean allowLegacy)voidsetDenySequences(boolean denySequences)voidsetHistorySize(int historySize)voidsetMaxAge(long maxAge)voidsetMinClassesNum(int minClassesNum)voidsetMinLength(int minLength)voidsetMinScore(int minScore)voidsetPasswordResetSettings(PasswordCredentialResetSettings passwordResetSettings)voidsetScryptParams(ScryptParams params)voidsetSerializedConfiguration(com.fasterxml.jackson.databind.node.ObjectNode root)
-
-
-
Field Detail
-
MAX_AGE_UNDEF
public static final long MAX_AGE_UNDEF
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSerializedConfiguration
public com.fasterxml.jackson.databind.node.ObjectNode getSerializedConfiguration() throws pl.edu.icm.unity.exceptions.InternalException- Throws:
pl.edu.icm.unity.exceptions.InternalException
-
setSerializedConfiguration
public void setSerializedConfiguration(com.fasterxml.jackson.databind.node.ObjectNode root) throws pl.edu.icm.unity.exceptions.InternalException- Throws:
pl.edu.icm.unity.exceptions.InternalException
-
hasStrongerRequirementsThen
public boolean hasStrongerRequirementsThen(PasswordCredential other)
-
getMinLength
public int getMinLength()
-
setMinLength
public void setMinLength(int minLength)
-
getHistorySize
public int getHistorySize()
-
setHistorySize
public void setHistorySize(int historySize)
-
getMinClassesNum
public int getMinClassesNum()
-
setMinClassesNum
public void setMinClassesNum(int minClassesNum)
-
isDenySequences
public boolean isDenySequences()
-
isAllowLegacy
public boolean isAllowLegacy()
-
setAllowLegacy
public void setAllowLegacy(boolean allowLegacy)
-
setDenySequences
public void setDenySequences(boolean denySequences)
-
getMaxAge
public long getMaxAge()
-
setMaxAge
public void setMaxAge(long maxAge)
-
getScryptParams
public ScryptParams getScryptParams()
-
setScryptParams
public void setScryptParams(ScryptParams params)
-
getPasswordResetSettings
public PasswordCredentialResetSettings getPasswordResetSettings()
-
setPasswordResetSettings
public void setPasswordResetSettings(PasswordCredentialResetSettings passwordResetSettings)
-
getMinScore
public int getMinScore()
-
setMinScore
public void setMinScore(int minScore)
-
-