|
JSCAPE MFT Server | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.vfs.Account
public final class Account
Represents user account abstraction. The account is a named block of user available files. It also contains basic user information.
Nested Class Summary | |
---|---|
static class |
Account.Delegate
An account persistence delegate. |
static class |
Account.NameComparator
|
Constructor Summary | |
---|---|
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 | |
---|---|
void |
addGroup(java.lang.String groupName)
Adds current account to the specified group. |
boolean |
equals(java.lang.Object o)
|
DomainAdministration |
getAdministration()
Gets domain administration parameters for account. |
java.lang.String[] |
getBindedKeys()
Returns account binded public keys. |
com.jscape.inet.vfs.Company |
getCompany()
Returns user's company. |
Quota |
getDownloadsQuota()
Gets maximum downloads quota. |
java.lang.String |
getEmailAddress()
Returns account email address. |
java.util.Date |
getExpirationDate()
Returns the account expiration date. |
java.lang.String |
getGroupName()
Deprecated. use getGroups() instead |
java.util.Set<java.lang.String> |
getGroups()
Returns account groups. |
com.jscape.inet.vfs.IPAccessVerifier |
getIpAccessVerifier()
Returns account's IP access verifier. |
java.util.Date |
getLastLoginDate()
Returns user's last login date. |
java.lang.String |
getLogin()
Returns the user login. |
com.jscape.inet.vfs.LoginRedirection |
getLoginRedirection()
Returns account's login redirection. |
java.lang.String |
getNotes()
Returns account's notes. |
java.util.Map |
getOptions()
Returns custom options. |
java.lang.String |
getOwner()
Gets username of owner account. |
boolean |
getPasswordChangingAllowed()
Returns password change allowed flag. |
java.util.Date |
getPasswordDate()
Gets password creation date. |
byte[] |
getPasswordHash()
Returns account password hash. |
java.util.List |
getPasswordHistory()
Gets password history. |
com.jscape.inet.vfs.Phone |
getPhone()
Returns user's phone. |
VirtualFileDescriptor[] |
getResources()
Gets the account virtual paths array. |
Quota |
getTransfersQuota()
Gets maximum transfers quota. |
Quota |
getUploadsQuota()
Gets maximum uploads quota. |
java.lang.String |
getUsername()
Returns the user name. |
int |
hashCode()
|
boolean |
isEmailFileTransferAllowed()
Returns email file transfer allowed flag. |
boolean |
isEnabled()
Checks if the account is enabled. |
boolean |
isExpired()
Checks if this account is expired. |
boolean |
isIgnorePasswordAgingRules()
Checks if password aging rules can be ignored for current account. |
boolean |
isMemberOfGroup(java.lang.String groupName)
Checks if current account is a member of specified group. |
boolean |
isOwnedBy(java.lang.String owner)
Checks if current account is owned by the specified. |
boolean |
isOwnerOf(Account account)
Checks if specified account is owned by current one. |
boolean |
isSecured()
Checks if the account must login using secure protocol. |
boolean |
isUsePhoneAuthentication()
Checks if phone authentication must be used while user authentication. |
com.jscape.inet.vfs.Password |
password()
Returns account's password. |
void |
removeGroup(java.lang.String groupName)
Removes current account from the specified group. |
void |
setAdministration(DomainAdministration value)
Sets domain administration parameters for account. |
void |
setBindedKeys(java.lang.String[] value)
Sets account binded public keys. |
void |
setCompany(com.jscape.inet.vfs.Company value)
Sets user's company |
void |
setDownloadsQuota(Quota value)
Sets maximum downloads quota. |
void |
setEmailAddress(java.lang.String value)
Sets new account email address. |
void |
setEmailFileTransferAllowed(boolean value)
Sets email file transfer allowed flag. |
void |
setEnabled(boolean value)
Sets account enabling indicator. |
void |
setExpirationDate(java.util.Date value)
Sets the expiration date. |
void |
setGroupName(java.lang.String value)
Deprecated. use setGroups() instead |
void |
setGroups(java.util.Set<java.lang.String> value)
Sets account groups. |
void |
setIgnorePasswordAgingRules(boolean value)
Sets password aging ignoring flag. |
void |
setIpAccessVerifier(com.jscape.inet.vfs.IPAccessVerifier value)
Sets account's IP access verifier. |
void |
setLastLoginDate(java.util.Date value)
Sets user's last login date. |
void |
setLogin(java.lang.String value)
Sets user login. |
void |
setLoginRedirection(com.jscape.inet.vfs.LoginRedirection value)
Sets account's login redirection. |
void |
setNotes(java.lang.String value)
Sets account's notes. |
void |
setOptions(java.util.Map value)
Sets custom options. |
void |
setOwner(java.lang.String value)
Sets username of owner account. |
void |
setPassword(char[] value)
Sets a new account password. |
void |
setPasswordChangingAllowed(boolean value)
Sets password changing allowed flag. |
void |
setPasswordDate(java.util.Date value)
Sets password creation date. |
void |
setPasswordHash(byte[] value)
Sets the account password hash |
void |
setPasswordHistory(java.util.List value)
Sets password history. |
void |
setPhone(com.jscape.inet.vfs.Phone value)
Sets user's phone. |
void |
setResources(VirtualFileDescriptor[] value)
Sets the account virtual paths. |
void |
setSecured(boolean value)
Sets whether user must login using secure protocol. |
void |
setTransfersQuota(Quota value)
Sets maximum transfers quota. |
void |
setUploadsQuota(Quota value)
Sets maximum uploads quota. |
void |
setUsePhoneAuthentication(boolean value)
Sets phone authentication flag. |
void |
setUsername(java.lang.String value)
Sets the user name. |
java.lang.String |
toString()
|
void |
verifyAddress(java.net.InetAddress address)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Account(java.lang.String username, java.lang.String login, char[] password, VirtualFileDescriptor[] resources, java.util.Date expirationDate)
username
- the user namelogin
- the user loginpassword
- the user passwordresources
- the virtual paths associated with this userexpirationDate
- the expiration datepublic Account(java.lang.String username, java.lang.String login, byte[] passwordHash, VirtualFileDescriptor[] resources, java.util.Date expirationDate)
username
- the user namelogin
- the user loginpasswordHash
- the user password hashresources
- the virtual paths associated with this userexpirationDate
- the expiration datepublic Account(Account that)
that
- instance will be copiedMethod Detail |
---|
public java.lang.String getUsername()
public void setUsername(java.lang.String value)
value
- the user namepublic java.lang.String getLogin()
public void setLogin(java.lang.String value)
value
- the user loginpublic byte[] getPasswordHash()
public void setPasswordHash(byte[] value)
value
- The account password hash will be setpublic void setPassword(char[] value)
value
- The new account passwordpublic java.util.Date getPasswordDate()
public void setPasswordDate(java.util.Date value)
value
- password creation datepublic java.util.List getPasswordHistory()
public void setPasswordHistory(java.util.List value)
value
- password historypublic java.lang.String getGroupName()
null
if account doesn't belong to any grouppublic void setGroupName(java.lang.String value)
value
- the group namepublic java.util.Set<java.lang.String> getGroups()
public void setGroups(java.util.Set<java.lang.String> value)
value
- account group setpublic void addGroup(java.lang.String groupName)
groupName
- target group namepublic void removeGroup(java.lang.String groupName)
groupName
- target group namepublic boolean isMemberOfGroup(java.lang.String groupName)
groupName
- target group name
true
if account is a memeber of the group; false
otherwisepublic java.lang.String getEmailAddress()
public void setEmailAddress(java.lang.String value)
value
- account email addresspublic com.jscape.inet.vfs.Company getCompany()
public void setCompany(com.jscape.inet.vfs.Company value)
value
- a user companypublic com.jscape.inet.vfs.Phone getPhone()
public void setPhone(com.jscape.inet.vfs.Phone value)
value
- a new phone valuepublic java.lang.String[] getBindedKeys()
public void setBindedKeys(java.lang.String[] value)
value
- account binded keys aliasespublic java.lang.String getOwner()
public void setOwner(java.lang.String value)
value
- owner loginpublic boolean isOwnerOf(Account account)
account
- target account
true
if specified account is owned by current;
false
otherwisepublic boolean isOwnedBy(java.lang.String owner)
owner
- an owner account name
true
if current account is owned by the specified;
false
otherwisepublic java.util.Date getExpirationDate()
public void setExpirationDate(java.util.Date value)
value
- the new expiration datepublic boolean isExpired()
true
if account is expired;
false
otherwisepublic Quota getUploadsQuota()
public void setUploadsQuota(Quota value)
value
- uploads quotapublic Quota getDownloadsQuota()
public void setDownloadsQuota(Quota value)
value
- downloads quotapublic Quota getTransfersQuota()
public void setTransfersQuota(Quota value)
value
- transfers quotapublic VirtualFileDescriptor[] getResources()
public void setResources(VirtualFileDescriptor[] value)
value
- the new user virtual paths arraypublic DomainAdministration getAdministration()
public void setAdministration(DomainAdministration value)
value
- domain administration paramspublic boolean isSecured()
true
if the account has secured access;
false
otherwisepublic void setSecured(boolean value)
value
- if true
the account will have only secured accesspublic boolean isEnabled()
true
if the account is enabled;
false
otherwisepublic void setEnabled(boolean value)
value
- if public boolean getPasswordChangingAllowed()
true
if password changing is allowed;
false
otherwisepublic void setPasswordChangingAllowed(boolean value)
value
- if true
password changing is allowedpublic boolean isEmailFileTransferAllowed()
true
if email file transfer is allowed;
false
otherwisepublic void setEmailFileTransferAllowed(boolean value)
value
- if true
email file transfer is allowedpublic boolean isUsePhoneAuthentication()
true
if phone authentication must be used;
false
otherwisepublic void setUsePhoneAuthentication(boolean value)
value
- if true
the phone authentication must be usedpublic boolean isIgnorePasswordAgingRules()
true
if password aging rules can be ignored;
false
otherwisepublic void setIgnorePasswordAgingRules(boolean value)
value
- if true
password aging rules can be ignored for current accountpublic java.util.Date getLastLoginDate()
public void setLastLoginDate(java.util.Date value)
value
- last login datepublic com.jscape.inet.vfs.LoginRedirection getLoginRedirection()
public void setLoginRedirection(com.jscape.inet.vfs.LoginRedirection value)
value
- account's login redirectionpublic com.jscape.inet.vfs.IPAccessVerifier getIpAccessVerifier()
public void setIpAccessVerifier(com.jscape.inet.vfs.IPAccessVerifier value)
value
- account's IP access verifierpublic java.lang.String getNotes()
public void setNotes(java.lang.String value)
value
- account's notespublic java.util.Map getOptions()
public void setOptions(java.util.Map value)
value
- custom optionspublic com.jscape.inet.vfs.Password password()
public void verifyAddress(java.net.InetAddress address) throws com.jscape.inet.vfs.IPAccessVerifier.AccessDeniedException
com.jscape.inet.vfs.IPAccessVerifier.AccessDeniedException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
JSCAPE MFT Server | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |