Package com.jscape.inet.vfs
Class Account
- java.lang.Object
-
- com.jscape.inet.vfs.Account
-
- All Implemented Interfaces:
com.jscape.util.db.IntVersioned,java.io.Serializable
public class Account extends java.lang.Object implements java.io.Serializable, com.jscape.util.db.IntVersionedRepresents user account abstraction. The account is a named block of user available files. It also contains basic user information.- Author:
- Alex Usun
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccount.DelegateAn account persistence delegate.
-
Constructor Summary
Constructors Constructor Description Account()Used in serialization subsystem.Account(Account that)Copy constructor.Account(java.lang.String username, java.lang.String login, byte[] passwordHash, VirtualFileDescriptor<?>[] resources, java.util.Date expirationDate)Creates a new account instance.Account(java.lang.String username, java.lang.String login, char[] password, VirtualFileDescriptor<?>[] resources, java.util.Date expirationDate)Creates a new account instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddGroup(java.lang.String groupName)Adds current account to the specified group.booleanadHocFileTransferAllowed(com.jscape.inet.vfs.AdHocPermission permission)Checks if ad-hoc file transfer allowedbooleanequals(java.lang.Object o)com.jscape.inet.vfs.AdHocPermission[]getAdHocTransferPermissions()Returns ad-hoc file transfer permissionsDomainAdministrationgetAdministration()Gets domain administration parameters for account.com.jscape.inet.mftserver.domain.user.Protocol[]getAllowedProtocols()Gets account allowed protocols.java.lang.String[]getBindedKeys()Returns account binded public keys.com.jscape.inet.vfs.CompanygetCompany()Returns user's company.longgetCreationDate()com.jscape.inet.mft.UiThemegetCustomUiTheme()Gets user custom UI theme.QuotagetDownloadsQuota()Gets maximum downloads quota.java.lang.StringgetEmailAddress()Returns account email address.java.util.DategetExpirationDate()Returns the account expiration date.java.util.Set<java.lang.String>getGroups()Returns account groups.com.jscape.inet.vfs.IPAccessVerifiergetIpAccessVerifier()Returns account's IP access verifier.java.util.DategetLastLoginDate()Returns user's last login date.java.lang.StringgetLogin()Returns the user login.com.jscape.inet.vfs.LoginRedirection<?>getLoginRedirection()Returns account's login redirection.java.lang.IntegergetMaxDownloadsPerSession()Returns max downloads per session value.java.lang.LonggetMaxTransferRateBytesPerSecond()java.lang.IntegergetMaxUploadsPerSession()Returns max uploads per session value.java.lang.StringgetNotes()Returns account's notes.java.util.Map<java.lang.Object,java.lang.Object>getOptions()Returns custom options.java.lang.StringgetOtpSharedSecret()Returns Time-based One Time Password (TOTP) shared secret.java.lang.StringgetOwner()Gets username of owner account.java.util.DategetPasswordDate()Gets password creation date.com.jscape.inet.vfs.PasswordExpirationNotificationgetPasswordExpirationNotification()byte[]getPasswordHash()Returns account password hash.java.util.List<java.lang.String>getPasswordHistory()Gets password history.com.jscape.inet.vfs.PhonegetPhone()Returns user's phone.VirtualFileDescriptor<?>[]getResources()Gets the account virtual paths array.java.lang.String[]getTags()QuotagetTransfersQuota()Gets maximum transfers quota.java.lang.StringgetUiTheme()Gets account preferred UI theme.QuotagetUploadsQuota()Gets maximum uploads quota.java.lang.StringgetUsername()Returns the user name.intgetVersion()inthashCode()booleanisEmailFileTransferAllowed()Returns email file transfer allowed flag.booleanisEnabled()Checks if the account is enabled.booleanisExpired()Checks if this account is expired.booleanisIgnorePasswordAgingRules()Checks if password aging rules can be ignored for current account.booleanisMemberOfAnyGroup()Checks if current account is a member of any group.booleanisMemberOfGroup(java.lang.String groupName)Checks if current account is a member of specified group.booleanisOwnedBy(java.lang.String owner)Checks if current account is owned by the specified.booleanisOwnerOf(Account account)Checks if specified account is owned by current one.booleanisPasswordChangingAllowed()Returns password change allowed flag.booleanisPasswordResetRequired()Checks if require reset password.booleanisSecured()Checks if the account must login using secure protocol.booleanisSftpPublicKeyAuthenticationRequired()booleanisUsePhoneAuthentication()Checks if phone authentication must be used while user authentication.booleanisWebAccountLinkAvailable()booleanisWebAdHocActivityAvailable()Returns the ad-hoc activity Web availability flag.booleanisWebContactsAvailable()Returns the contacts Web availability flag.booleanisWebDropZonesAvailable()Returns the drop zones Web availability flag.booleanisWebOpenPgpEncryptionAvailable()Returns the OpenPGP encryption Web availability flag.booleanisWebPersonalInformationAvailable()booleanisWebPublicKeyAuthenticationAvailable()Returns the public key authentication Web availability flag.booleanisWebQuotasAvailable()Returns the quotas Web availability flag.com.jscape.inet.vfs.Passwordpassword()Returns account's password.voidremoveGroup(java.lang.String groupName)Removes current account from the specified group.voidsetAdHocTransferPermissions(com.jscape.inet.vfs.AdHocPermission[] value)Sets ad-hoc file transfer permissionsvoidsetAdministration(DomainAdministration value)Sets domain administration parameters for account.voidsetAllowedProtocols(com.jscape.inet.mftserver.domain.user.Protocol[] value)Sets account allowed protocols.voidsetBindedKeys(java.lang.String[] value)Sets account binded public keys.voidsetCompany(com.jscape.inet.vfs.Company value)Sets user's companyvoidsetCreationDate(long value)voidsetCustomUiTheme(com.jscape.inet.mft.UiTheme value)Sets user custom UI theme.voidsetDownloadsQuota(Quota value)Sets maximum downloads quota.voidsetEmailAddress(java.lang.String value)Sets new account email address.voidsetEmailFileTransferAllowed(boolean value)Sets email file transfer allowed flag.voidsetEnabled(boolean value)Sets account enabling indicator.voidsetExpirationDate(java.util.Date value)Sets the expiration date.voidsetGroupName(java.lang.String value)Deprecated.use setGroups() insteadvoidsetGroups(java.util.Set<java.lang.String> value)Sets account groups.voidsetIgnorePasswordAgingRules(boolean value)Sets password aging ignoring flag.voidsetIpAccessVerifier(com.jscape.inet.vfs.IPAccessVerifier value)Sets account's IP access verifier.voidsetLastLoginDate(java.util.Date value)Sets user's last login date.voidsetLogin(java.lang.String value)Sets user login.voidsetLoginRedirection(com.jscape.inet.vfs.LoginRedirection<?> value)Sets account's login redirection.voidsetMaxDownloadsPerSession(java.lang.Integer value)Sets max downloads per session value.voidsetMaxTransferRateBytesPerSecond(java.lang.Long value)voidsetMaxUploadsPerSession(java.lang.Integer value)Sets max uploads per session value.voidsetNotes(java.lang.String value)Sets account's notes.voidsetOptions(java.util.Map<java.lang.Object,java.lang.Object> value)Sets custom options.voidsetOtpSharedSecret(java.lang.String value)Sets Time-based One Time Password (TOTP) shared secret.voidsetOwner(java.lang.String value)Sets username of owner account.voidsetPassword(char[] value)Sets a new account password.voidsetPasswordChangingAllowed(boolean value)Sets password changing allowed flag.voidsetPasswordDate(java.util.Date value)Sets password creation date.voidsetPasswordExpirationNotification(com.jscape.inet.vfs.PasswordExpirationNotification value)voidsetPasswordHash(byte[] value)Sets the account password hashvoidsetPasswordHistory(java.util.List<java.lang.String> value)Sets password history.voidsetPasswordResetRequired(boolean value)Sets reset password requirement flag.voidsetPhone(com.jscape.inet.vfs.Phone value)Sets user's phone.voidsetResources(VirtualFileDescriptor<?>[] value)Sets the account virtual paths.voidsetSecured(boolean value)Sets whether user must login using secure protocol.voidsetSftpPublicKeyAuthenticationRequired(boolean value)voidsetTags(java.lang.String[] value)voidsetTransfersQuota(Quota value)Sets maximum transfers quota.voidsetUiTheme(java.lang.String value)Sets account preferred UI theme.voidsetUploadsQuota(Quota value)Sets maximum uploads quota.voidsetUsePhoneAuthentication(boolean value)Sets phone authentication flag.voidsetUsername(java.lang.String value)Sets the user name.voidsetVersion(int value)voidsetWebAccountLinkAvailable(boolean value)voidsetWebAdHocActivityAvailable(boolean value)Sets the ad-hoc activity Web availability flagvoidsetWebAftpProtocolPreferable(boolean value)Deprecated.Support for Java applet removedvoidsetWebContactsAvailable(boolean value)Sets the contacts Web availability flagvoidsetWebDropZonesAvailable(boolean value)Sets the drop zones Web availability flagvoidsetWebOpenPgpEncryptionAvailable(boolean value)Sets the OpenPGP encryption Web availability flagvoidsetWebPersonalInformationAvailable(boolean value)voidsetWebPublicKeyAuthenticationAvailable(boolean value)Sets the public key authentication Web availability flagvoidsetWebQuotasAvailable(boolean value)Sets the quotas Web availability flagjava.lang.StringtoString()voidverifyAddress(java.net.InetAddress address)Verifies the specified address.
-
-
-
Constructor Detail
-
Account
public Account(java.lang.String username, java.lang.String login, char[] password, VirtualFileDescriptor<?>[] resources, java.util.Date expirationDate)Creates a new account instance.- Parameters:
username- the user namelogin- the user loginpassword- the user passwordresources- the virtual paths associated with this userexpirationDate- the expiration date
-
Account
public Account(java.lang.String username, java.lang.String login, byte[] passwordHash, VirtualFileDescriptor<?>[] resources, java.util.Date expirationDate)Creates a new account instance.- Parameters:
username- the user namelogin- the user loginpasswordHash- the user password hashresources- the virtual paths associated with this userexpirationDate- the expiration date
-
Account
public Account(Account that)
Copy constructor.- Parameters:
that- instance will be copied
-
Account
public Account()
Used in serialization subsystem.
-
-
Method Detail
-
getUsername
public java.lang.String getUsername()
Returns the user name.- Returns:
- the user name
-
setUsername
public void setUsername(java.lang.String value)
Sets the user name.- Parameters:
value- the user name
-
getLogin
public java.lang.String getLogin()
Returns the user login.- Returns:
- the user login
-
setLogin
public void setLogin(java.lang.String value)
Sets user login.- Parameters:
value- the user login
-
getPasswordHash
public byte[] getPasswordHash()
Returns account password hash.- Returns:
- the account password hash
-
setPasswordHash
public void setPasswordHash(byte[] value)
Sets the account password hash- Parameters:
value- The account password hash will be set
-
setPassword
public void setPassword(char[] value)
Sets a new account password.- Parameters:
value- The new account password
-
getPasswordDate
public java.util.Date getPasswordDate()
Gets password creation date.- Returns:
- password creation date
-
setPasswordDate
public void setPasswordDate(java.util.Date value)
Sets password creation date.- Parameters:
value- password creation date
-
getPasswordHistory
public java.util.List<java.lang.String> getPasswordHistory()
Gets password history.- Returns:
- password history
-
setPasswordHistory
public void setPasswordHistory(java.util.List<java.lang.String> value)
Sets password history.- Parameters:
value- password history
-
setGroupName
@Deprecated public void setGroupName(java.lang.String value)
Deprecated.use setGroups() insteadSets a new group for the account.- Parameters:
value- the group name
-
getGroups
public java.util.Set<java.lang.String> getGroups()
Returns account groups.- Returns:
- account group set
-
setGroups
public void setGroups(java.util.Set<java.lang.String> value)
Sets account groups.- Parameters:
value- account group set
-
addGroup
public void addGroup(java.lang.String groupName)
Adds current account to the specified group.- Parameters:
groupName- target group name
-
removeGroup
public void removeGroup(java.lang.String groupName)
Removes current account from the specified group.- Parameters:
groupName- target group name
-
isMemberOfGroup
public boolean isMemberOfGroup(java.lang.String groupName)
Checks if current account is a member of specified group.- Parameters:
groupName- target group name- Returns:
trueif account is a memeber of the group;falseotherwise
-
isMemberOfAnyGroup
public boolean isMemberOfAnyGroup()
Checks if current account is a member of any group.- Returns:
trueif account is a memeber of any group;falseotherwise
-
getEmailAddress
public java.lang.String getEmailAddress()
Returns account email address.- Returns:
- account email address
-
setEmailAddress
public void setEmailAddress(java.lang.String value)
Sets new account email address.- Parameters:
value- account email address
-
getCompany
public com.jscape.inet.vfs.Company getCompany()
Returns user's company.- Returns:
- user's company
-
setCompany
public void setCompany(com.jscape.inet.vfs.Company value)
Sets user's company- Parameters:
value- a user company
-
getPhone
public com.jscape.inet.vfs.Phone getPhone()
Returns user's phone.- Returns:
- user's phone
-
setPhone
public void setPhone(com.jscape.inet.vfs.Phone value)
Sets user's phone.- Parameters:
value- a new phone value
-
getBindedKeys
public java.lang.String[] getBindedKeys()
Returns account binded public keys.- Returns:
- account binded keys aliases
-
setBindedKeys
public void setBindedKeys(java.lang.String[] value)
Sets account binded public keys.- Parameters:
value- account binded keys aliases
-
getOwner
public java.lang.String getOwner()
Gets username of owner account.- Returns:
- owner login
-
setOwner
public void setOwner(java.lang.String value)
Sets username of owner account.- Parameters:
value- owner login
-
isOwnerOf
public boolean isOwnerOf(Account account)
Checks if specified account is owned by current one.- Parameters:
account- target account- Returns:
trueif specified account is owned by current;falseotherwise
-
isOwnedBy
public boolean isOwnedBy(java.lang.String owner)
Checks if current account is owned by the specified.- Parameters:
owner- an owner account name- Returns:
trueif current account is owned by the specified;falseotherwise
-
getExpirationDate
public java.util.Date getExpirationDate()
Returns the account expiration date.- Returns:
- exiration date
-
setExpirationDate
public void setExpirationDate(java.util.Date value)
Sets the expiration date.- Parameters:
value- the new expiration date
-
isExpired
public boolean isExpired()
Checks if this account is expired.- Returns:
trueif account is expired;falseotherwise
-
getUploadsQuota
public Quota getUploadsQuota()
Gets maximum uploads quota.- Returns:
- uploads quota
-
setUploadsQuota
public void setUploadsQuota(Quota value)
Sets maximum uploads quota.- Parameters:
value- uploads quota
-
getDownloadsQuota
public Quota getDownloadsQuota()
Gets maximum downloads quota.- Returns:
- downloads quota
-
setDownloadsQuota
public void setDownloadsQuota(Quota value)
Sets maximum downloads quota.- Parameters:
value- downloads quota
-
getTransfersQuota
public Quota getTransfersQuota()
Gets maximum transfers quota.- Returns:
- transfers quota
-
setTransfersQuota
public void setTransfersQuota(Quota value)
Sets maximum transfers quota.- Parameters:
value- transfers quota
-
getMaxTransferRateBytesPerSecond
public java.lang.Long getMaxTransferRateBytesPerSecond()
-
setMaxTransferRateBytesPerSecond
public void setMaxTransferRateBytesPerSecond(java.lang.Long value)
-
getResources
public VirtualFileDescriptor<?>[] getResources()
Gets the account virtual paths array.- Returns:
- Returns the user virtual paths
-
setResources
public void setResources(VirtualFileDescriptor<?>[] value)
Sets the account virtual paths.- Parameters:
value- the new user virtual paths array
-
getAdministration
public DomainAdministration getAdministration()
Gets domain administration parameters for account.- Returns:
- domain administration params
-
setAdministration
public void setAdministration(DomainAdministration value)
Sets domain administration parameters for account.- Parameters:
value- domain administration params
-
isSecured
public boolean isSecured()
Checks if the account must login using secure protocol.- Returns:
trueif the account has secured access;falseotherwise
-
setSecured
public void setSecured(boolean value)
Sets whether user must login using secure protocol.- Parameters:
value- iftruethe account will have only secured access
-
isEnabled
public boolean isEnabled()
Checks if the account is enabled.- Returns:
trueif the account is enabled;falseotherwise
-
setEnabled
public void setEnabled(boolean value)
Sets account enabling indicator.- Parameters:
value- iftrue the account will be enabled
-
isPasswordChangingAllowed
public boolean isPasswordChangingAllowed()
Returns password change allowed flag. Used for FTP/SFTP password changing.- Returns:
trueif password changing is allowed;falseotherwise
-
setPasswordChangingAllowed
public void setPasswordChangingAllowed(boolean value)
Sets password changing allowed flag.- Parameters:
value- iftruepassword changing is allowed
-
isEmailFileTransferAllowed
public boolean isEmailFileTransferAllowed()
Returns email file transfer allowed flag.- Returns:
trueif email file transfer is allowed;falseotherwise
-
setEmailFileTransferAllowed
public void setEmailFileTransferAllowed(boolean value)
Sets email file transfer allowed flag.- Parameters:
value- iftrueemail file transfer is allowed
-
getAdHocTransferPermissions
public com.jscape.inet.vfs.AdHocPermission[] getAdHocTransferPermissions()
Returns ad-hoc file transfer permissions- Returns:
- ad-hoc file transfer permissions
-
setAdHocTransferPermissions
public void setAdHocTransferPermissions(com.jscape.inet.vfs.AdHocPermission[] value)
Sets ad-hoc file transfer permissions- Parameters:
value- ad-hoc file transfer permissions
-
adHocFileTransferAllowed
public boolean adHocFileTransferAllowed(com.jscape.inet.vfs.AdHocPermission permission)
Checks if ad-hoc file transfer allowed- Parameters:
permission- ad-hoc file transfer permission- Returns:
trueifisEmailFileTransferAllowed()and ad-hoc transfer permission defined
-
isUsePhoneAuthentication
public boolean isUsePhoneAuthentication()
Checks if phone authentication must be used while user authentication.- Returns:
trueif phone authentication must be used;falseotherwise
-
setUsePhoneAuthentication
public void setUsePhoneAuthentication(boolean value)
Sets phone authentication flag.- Parameters:
value- iftruethe phone authentication must be used
-
isIgnorePasswordAgingRules
public boolean isIgnorePasswordAgingRules()
Checks if password aging rules can be ignored for current account.- Returns:
trueif password aging rules can be ignored;falseotherwise
-
setIgnorePasswordAgingRules
public void setIgnorePasswordAgingRules(boolean value)
Sets password aging ignoring flag.- Parameters:
value- iftruepassword aging rules can be ignored for current account
-
isPasswordResetRequired
public boolean isPasswordResetRequired()
Checks if require reset password.- Returns:
trueif require reset password;falseotherwise
-
setPasswordResetRequired
public void setPasswordResetRequired(boolean value)
Sets reset password requirement flag.- Parameters:
value- iftruerequire reset password
-
getAllowedProtocols
public com.jscape.inet.mftserver.domain.user.Protocol[] getAllowedProtocols()
Gets account allowed protocols.- Returns:
- allowed protocols
-
setAllowedProtocols
public void setAllowedProtocols(com.jscape.inet.mftserver.domain.user.Protocol[] value)
Sets account allowed protocols.- Parameters:
value- allowed protocols
-
getUiTheme
public java.lang.String getUiTheme()
Gets account preferred UI theme.- Returns:
- theme name
-
getCustomUiTheme
public com.jscape.inet.mft.UiTheme getCustomUiTheme()
Gets user custom UI theme.- Returns:
- the custom UI theme or
nullif not defined
-
setCustomUiTheme
public void setCustomUiTheme(com.jscape.inet.mft.UiTheme value)
Sets user custom UI theme.- Parameters:
value- custom UI theme
-
setUiTheme
public void setUiTheme(java.lang.String value)
Sets account preferred UI theme.- Parameters:
value- theme name
-
getLastLoginDate
public java.util.Date getLastLoginDate()
Returns user's last login date.- Returns:
- user's last login date
-
setLastLoginDate
public void setLastLoginDate(java.util.Date value)
Sets user's last login date.- Parameters:
value- last login date
-
getLoginRedirection
public com.jscape.inet.vfs.LoginRedirection<?> getLoginRedirection()
Returns account's login redirection.- Returns:
- account's login redirection
-
setLoginRedirection
public void setLoginRedirection(com.jscape.inet.vfs.LoginRedirection<?> value)
Sets account's login redirection.- Parameters:
value- account's login redirection
-
getIpAccessVerifier
public com.jscape.inet.vfs.IPAccessVerifier getIpAccessVerifier()
Returns account's IP access verifier.- Returns:
- accont's IP access verifier
-
setIpAccessVerifier
public void setIpAccessVerifier(com.jscape.inet.vfs.IPAccessVerifier value)
Sets account's IP access verifier.- Parameters:
value- account's IP access verifier
-
getMaxUploadsPerSession
public java.lang.Integer getMaxUploadsPerSession()
Returns max uploads per session value.- Returns:
- max uploads per session value
-
setMaxUploadsPerSession
public void setMaxUploadsPerSession(java.lang.Integer value)
Sets max uploads per session value.- Parameters:
value- new value
-
getMaxDownloadsPerSession
public java.lang.Integer getMaxDownloadsPerSession()
Returns max downloads per session value.- Returns:
- max downloads per session value
-
setMaxDownloadsPerSession
public void setMaxDownloadsPerSession(java.lang.Integer value)
Sets max downloads per session value.- Parameters:
value- new value
-
isWebPublicKeyAuthenticationAvailable
public boolean isWebPublicKeyAuthenticationAvailable()
Returns the public key authentication Web availability flag.- Returns:
trueif public key authentication is available in Web
-
setWebPublicKeyAuthenticationAvailable
public void setWebPublicKeyAuthenticationAvailable(boolean value)
Sets the public key authentication Web availability flag- Parameters:
value- iftruethe public key authentication will be available in Web
-
isWebOpenPgpEncryptionAvailable
public boolean isWebOpenPgpEncryptionAvailable()
Returns the OpenPGP encryption Web availability flag.- Returns:
trueif OpenPGP encryption is available in Web
-
setWebOpenPgpEncryptionAvailable
public void setWebOpenPgpEncryptionAvailable(boolean value)
Sets the OpenPGP encryption Web availability flag- Parameters:
value- iftruethe OpenPGP encryption will be available in Web
-
isWebQuotasAvailable
public boolean isWebQuotasAvailable()
Returns the quotas Web availability flag.- Returns:
trueif quotas are available in Web
-
setWebQuotasAvailable
public void setWebQuotasAvailable(boolean value)
Sets the quotas Web availability flag- Parameters:
value- iftruethe quotas will be available in Web
-
isWebContactsAvailable
public boolean isWebContactsAvailable()
Returns the contacts Web availability flag.- Returns:
trueif contacts are available in Web
-
setWebContactsAvailable
public void setWebContactsAvailable(boolean value)
Sets the contacts Web availability flag- Parameters:
value- iftruethe contacts will be available in Web
-
isWebAdHocActivityAvailable
public boolean isWebAdHocActivityAvailable()
Returns the ad-hoc activity Web availability flag.- Returns:
trueif ad-hoc activity is available in Web
-
setWebAdHocActivityAvailable
public void setWebAdHocActivityAvailable(boolean value)
Sets the ad-hoc activity Web availability flag- Parameters:
value- iftruethe ad-hoc activity will be available in Web
-
isWebDropZonesAvailable
public boolean isWebDropZonesAvailable()
Returns the drop zones Web availability flag.- Returns:
trueif drop zones are available in Web
-
setWebDropZonesAvailable
public void setWebDropZonesAvailable(boolean value)
Sets the drop zones Web availability flag- Parameters:
value- iftruethe drop zones will be available in Web
-
setWebAftpProtocolPreferable
@Deprecated public void setWebAftpProtocolPreferable(boolean value)
Deprecated.Support for Java applet removedSets AFTP protocol Web preferable flag.- Parameters:
value- iftrueprefer AFTP protocol for Java applet connections
-
isWebAccountLinkAvailable
public boolean isWebAccountLinkAvailable()
-
setWebAccountLinkAvailable
public void setWebAccountLinkAvailable(boolean value)
-
isWebPersonalInformationAvailable
public boolean isWebPersonalInformationAvailable()
-
setWebPersonalInformationAvailable
public void setWebPersonalInformationAvailable(boolean value)
-
isSftpPublicKeyAuthenticationRequired
public boolean isSftpPublicKeyAuthenticationRequired()
-
setSftpPublicKeyAuthenticationRequired
public void setSftpPublicKeyAuthenticationRequired(boolean value)
-
getPasswordExpirationNotification
public com.jscape.inet.vfs.PasswordExpirationNotification getPasswordExpirationNotification()
-
setPasswordExpirationNotification
public void setPasswordExpirationNotification(com.jscape.inet.vfs.PasswordExpirationNotification value)
-
getOtpSharedSecret
public java.lang.String getOtpSharedSecret()
Returns Time-based One Time Password (TOTP) shared secret.- Returns:
- TOTP shared secret
-
setOtpSharedSecret
public void setOtpSharedSecret(java.lang.String value)
Sets Time-based One Time Password (TOTP) shared secret.- Parameters:
value- TOTP shared secret
-
getNotes
public java.lang.String getNotes()
Returns account's notes.- Returns:
- account's notes
-
setNotes
public void setNotes(java.lang.String value)
Sets account's notes.- Parameters:
value- account's notes
-
getOptions
public java.util.Map<java.lang.Object,java.lang.Object> getOptions()
Returns custom options.- Returns:
- custom options
-
setOptions
public void setOptions(java.util.Map<java.lang.Object,java.lang.Object> value)
Sets custom options.- Parameters:
value- custom options
-
getTags
public java.lang.String[] getTags()
-
setTags
public void setTags(java.lang.String[] value)
-
getCreationDate
public long getCreationDate()
-
setCreationDate
public void setCreationDate(long value)
-
getVersion
public int getVersion()
- Specified by:
getVersionin interfacecom.jscape.util.db.IntVersioned
-
setVersion
public void setVersion(int value)
- Specified by:
setVersionin interfacecom.jscape.util.db.IntVersioned
-
password
public com.jscape.inet.vfs.Password password()
Returns account's password.- Returns:
- account's password
-
verifyAddress
public void verifyAddress(java.net.InetAddress address) throws com.jscape.inet.vfs.IPAccessVerifier.AccessDeniedExceptionVerifies the specified address.- Parameters:
address- the address- Throws:
com.jscape.inet.vfs.IPAccessVerifier.AccessDeniedException- if address is denied
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-