|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jSyncManager.API.Protocol.Util.DLPUserInfo
The DLP User Information class. This class holds the user information for the handheld.
Constructor Summary | |
---|---|
DLPUserInfo(byte[] userBlock)
Create a new DLP User Info object based on the data queried from the handheld. |
|
DLPUserInfo(int uid,
int vid,
int hostID,
java.lang.String userName)
Construct a new DLP User Info object using the specified information. |
Method Summary | |
---|---|
static byte[] |
encryptPasswordV4(java.lang.String passwd)
Method to encrypt a password String. |
byte[] |
getEncryptedPassword()
Retreives the encrypted password for this user. |
int |
getLastHostID()
Retreives the last sync host ID. |
java.util.Calendar |
getLastSuccessfulSyncDate()
Retreives the last successful sync date. |
java.util.Calendar |
getLastSyncDate()
Retreives the last sync date. |
int |
getUserID()
Retreives the user ID for this user object. |
java.lang.String |
getUserName()
Retreives the user name for this user object. |
int |
getViewerID()
Retreives the viewer ID for this user object. |
byte[] |
object2Bytes()
Convert this object to a byte array suitable for writing to the handheld. |
void |
setLastHostID(int i)
Set the last sync host ID. |
void |
setLastSyncDate(java.util.Calendar date)
Set the last sync date. |
void |
setUserID(int i)
Set the user ID. |
void |
setUserName(java.lang.String s)
Set the user name. |
void |
setViewerID(int i)
Set the viewer ID. |
java.lang.String |
toString()
Create a human-readable String representation of this object. |
boolean |
verifyPassword(java.lang.String passwd)
This method is called to test to see if the supplied password matches the password stored within this DLPUserInfo object. |
Methods inherited from class java.lang.Object |
---|
|
Constructor Detail |
public DLPUserInfo(int uid, int vid, int hostID, java.lang.String userName)
uid
- the user ID.vid
- the viewer ID.hostID
- the host PC ID.userName
- the user name to create.public DLPUserInfo(byte[] userBlock) throws DLPFunctionCallException
userBlock
- the user info byte array to parse.DLPFunctionCallException
- thrown if any parsing errors occur.Method Detail |
public byte[] getEncryptedPassword()
public int getLastHostID()
public java.util.Calendar getLastSuccessfulSyncDate()
public java.util.Calendar getLastSyncDate()
public int getUserID()
public java.lang.String getUserName()
public int getViewerID()
public byte[] object2Bytes()
public void setLastHostID(int i)
i
- the last sync host ID.public void setLastSyncDate(java.util.Calendar date)
date
- the last sync date.public void setUserID(int i)
i
- the user ID.public void setUserName(java.lang.String s) throws DLPFunctionCallException
s
- the user name to set.DLPFunctionCallException
- thrown if the user name is too long.public void setViewerID(int i)
i
- the viewer ID.public java.lang.String toString()
toString
in class java.lang.Object
public static byte[] encryptPasswordV4(java.lang.String passwd) throws EncryptionNotSupportedException
passwd
- the plain-text password to encrypt.public boolean verifyPassword(java.lang.String passwd) throws EncryptionNotSupportedException
passwd
- the clear-text password to test against the encrypted password.
|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |