|
||||||||||
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
|
Field Summary | |
---|---|
static java.lang.String |
NOTIFICATION_SENT_KEY
|
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 | |
---|---|
boolean |
accepts(char[] password)
Checks if the specified password is valid for this account. |
boolean |
equals(java.lang.Object o)
|
DomainAdministration |
getAdministration()
Gets domain administration parameters for account. |
java.lang.String[] |
getBindedKeys()
Returns account binded public keys. |
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()
Returns the account group name. |
java.lang.String |
getLogin()
Returns the user login. |
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 expiration date. |
byte[] |
getPasswordHash()
Returns account password hash. |
java.util.List |
getPasswordHistory()
Gets password history. |
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 |
isSecured()
Checks if the account must login using secure protocol. |
boolean |
isUsedPassword(char[] password,
int verifiedHistoryLength)
Checks if password has been used previously. |
void |
setAdministration(DomainAdministration value)
Sets domain administration parameters for account. |
void |
setBindedKeys(java.lang.String[] value)
Sets account binded public keys. |
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)
Sets a new group for the account. |
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 expiration date. |
void |
setPasswordHash(byte[] value)
Sets the account password hash |
void |
setPasswordHistory(java.util.List value)
Sets password history. |
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 |
setUsername(java.lang.String value)
Sets the user name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NOTIFICATION_SENT_KEY
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 byte[] getPasswordHash()
public void setPasswordHash(byte[] value)
value
- The account password hash will be setpublic void setPassword(char[] value)
value
- The new account passwordpublic boolean isUsedPassword(char[] password, int verifiedHistoryLength)
password
- the password to checkverifiedHistoryLength
- the history length to check
public boolean accepts(char[] password)
password
- the password to check
true
if the specified password is valid; false
otherwisepublic VirtualFileDescriptor[] getResources()
public void setResources(VirtualFileDescriptor[] value)
value
- the new user virtual paths arraypublic 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 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 java.lang.String getGroupName()
null
if account doesn't belong to any grouppublic void setGroupName(java.lang.String value)
value
- the group namepublic boolean getPasswordChangingAllowed()
true
if password changing is allowed;
false
otherwisepublic void setPasswordChangingAllowed(boolean value)
value
- if true
password changing is allowedpublic java.lang.String[] getBindedKeys()
public void setBindedKeys(java.lang.String[] value)
value
- account binded keys aliasespublic boolean isEmailFileTransferAllowed()
true
if email file transfer is allowed;
false
otherwisepublic void setEmailFileTransferAllowed(boolean value)
value
- if true
email file transfer is allowedpublic java.lang.String getEmailAddress()
public void setEmailAddress(java.lang.String value)
value
- account email addresspublic 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 java.util.Date getPasswordDate()
public void setPasswordDate(java.util.Date value)
value
- password expiration datepublic java.util.List getPasswordHistory()
public void setPasswordHistory(java.util.List value)
value
- password historypublic java.util.Map getOptions()
public void setOptions(java.util.Map value)
value
- custom optionspublic java.lang.String getOwner()
public void setOwner(java.lang.String value)
value
- public DomainAdministration getAdministration()
public void setAdministration(DomainAdministration value)
value
- domain administration paramspublic 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |