Class PasswordCredential
java.lang.Object
pl.edu.icm.unity.stdext.credential.pass.PasswordCredential
Represents business object of password credential. Supports (de)serialization
of the state to/from JSON.
- Author:
- K. Benedyczak
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintlongintintintcom.fasterxml.jackson.databind.node.ObjectNodebooleanbooleanbooleanvoidsetAllowLegacy(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 Details
-
MAX_AGE_UNDEF
public static final long MAX_AGE_UNDEF- See Also:
-
-
Constructor Details
-
PasswordCredential
public PasswordCredential()
-
-
Method Details
-
getSerializedConfiguration
public com.fasterxml.jackson.databind.node.ObjectNode getSerializedConfiguration() throws pl.edu.icm.unity.base.exceptions.InternalException- Throws:
pl.edu.icm.unity.base.exceptions.InternalException
-
setSerializedConfiguration
public void setSerializedConfiguration(com.fasterxml.jackson.databind.node.ObjectNode root) throws pl.edu.icm.unity.base.exceptions.InternalException - Throws:
pl.edu.icm.unity.base.exceptions.InternalException
-
hasStrongerRequirementsThen
-
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
-
setScryptParams
-
getPasswordResetSettings
-
setPasswordResetSettings
-
getMinScore
public int getMinScore() -
setMinScore
public void setMinScore(int minScore)
-