Package org.cyclos.entities.access
Class PasswordType
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.NamedEntity
-
- org.cyclos.entities.ConfigurationEntity
-
- org.cyclos.entities.access.PasswordType
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasNetwork,ProcessableForProxying,DefinesNetwork,IEntity,IInternalNamedEntity,INamedEntity,UsesScript
@Entity public class PasswordType extends ConfigurationEntity implements DefinesNetwork, UsesScript
A password type which defines a user password
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description PasswordType()
-
Method Summary
-
Methods inherited from class org.cyclos.entities.ConfigurationEntity
getDescription, getInternalName, setDescription, setInternalName, toShortString, toString
-
Methods inherited from class org.cyclos.entities.NamedEntity
compareTo, getName, getNames, setName
-
Methods inherited from class org.cyclos.entities.BaseEntity
getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.model.IInternalNamedEntity
matches
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
Methods inherited from interface org.cyclos.model.system.scripts.UsesScript
isEnabled
-
-
-
-
Method Detail
-
canBeUsedForAccess
public boolean canBeUsedForAccess()
-
getBcryptStrength
public Integer getBcryptStrength()
-
getBlockTime
public TimeInterval getBlockTime()
-
getButtonsPerRow
public Integer getButtonsPerRow()
-
getCharactersPerButton
public Integer getCharactersPerButton()
-
getDataTranslationType
public DataTranslationType getDataTranslationType()
Description copied from class:BaseEntityIf this entity allows data translation, should return the translation type- Overrides:
getDataTranslationTypein classBaseEntity
-
getDescriptionOnRegistration
public String getDescriptionOnRegistration()
-
getExpiresAfter
public TimeInterval getExpiresAfter()
-
getInputMethod
public PasswordInputMethod getInputMethod()
-
getInvalidAction
public InvalidPasswordAction getInvalidAction()
-
getInvalidAttempts
public Integer getInvalidAttempts()
-
getLength
public IntegerRange getLength()
-
getLowerCaseLetters
public Availability getLowerCaseLetters()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getNumberOfButtons
public Integer getNumberOfButtons()
-
getNumberOfRows
public Integer getNumberOfRows()
-
getNumbers
public Availability getNumbers()
-
getOtpSendMediums
public Set<SendMedium> getOtpSendMediums()
-
getPasswordMode
public PasswordMode getPasswordMode()
-
getPossibleCharacters
public String getPossibleCharacters()
-
getScript
public CustomScript getScript()
-
getScriptParameters
public String getScriptParameters()
-
getScriptUsedInType
public CustomScriptUsedInType getScriptUsedInType()
Description copied from interface:UsesScriptReturns the type of script usage- Specified by:
getScriptUsedInTypein interfaceUsesScript
-
getSpecialCharacters
public Availability getSpecialCharacters()
-
getUpperCaseLetters
public Availability getUpperCaseLetters()
-
isAllowReuseOTP
public boolean isAllowReuseOTP()
Only valid if password mode isPasswordMode.OTP- Returns:
- true if the same OTP password can be reused before it expires.
-
isAvoidObvious
public boolean isAvoidObvious()
-
isAvoidRepeatedValue
public boolean isAvoidRepeatedValue()
-
isOnlyNumeric
public boolean isOnlyNumeric()
Returns if the password policies are configured to allow numbers only
-
isRequiresAdminAuthorization
public boolean isRequiresAdminAuthorization()
-
setAllowReuseOTP
public void setAllowReuseOTP(boolean allowReuse)
-
setAvoidObvious
public void setAvoidObvious(boolean avoidObvious)
-
setAvoidRepeatedValue
public void setAvoidRepeatedValue(boolean avoidRepeatedValue)
-
setBcryptStrength
public void setBcryptStrength(Integer bcryptStrength)
-
setBlockTime
public void setBlockTime(TimeInterval blockTime)
-
setCharactersPerButton
public void setCharactersPerButton(Integer charactersPerButton)
-
setDescriptionOnRegistration
public void setDescriptionOnRegistration(String descriptionOnRegistration)
-
setExpiresAfter
public void setExpiresAfter(TimeInterval expiresAfter)
-
setInputMethod
public void setInputMethod(PasswordInputMethod inputMethod)
-
setInvalidAction
public void setInvalidAction(InvalidPasswordAction invalidAction)
-
setInvalidAttempts
public void setInvalidAttempts(Integer invalidAttempts)
-
setLength
public void setLength(IntegerRange length)
-
setLowerCaseLetters
public void setLowerCaseLetters(Availability lowerCaseLetters)
-
setNetwork
public void setNetwork(Network network)
- Specified by:
setNetworkin interfaceDefinesNetwork
-
setNumberOfButtons
public void setNumberOfButtons(Integer numberOfButtons)
-
setNumberOfRows
public void setNumberOfRows(Integer numberOfRows)
-
setNumbers
public void setNumbers(Availability numbers)
-
setOtpSendMediums
public void setOtpSendMediums(Set<SendMedium> otpSendMediums)
-
setPasswordMode
public void setPasswordMode(PasswordMode passwordMode)
-
setPossibleCharacters
public void setPossibleCharacters(String possibleCharacters)
-
setRequiresAdminAuthorization
public void setRequiresAdminAuthorization(boolean requiresAdminAuthorization)
-
setScript
public void setScript(CustomScript script)
-
setScriptParameters
public void setScriptParameters(String scriptParameters)
-
setSpecialCharacters
public void setSpecialCharacters(Availability specialCharacters)
-
setUpperCaseLetters
public void setUpperCaseLetters(Availability upperCaseLetters)
-
-