public class SessionInfo extends Object implements DCEReadable
Modifier and Type | Field and Description |
---|---|
static int |
EncryptedPassword |
static int |
Guest |
static int |
InfoLevel0 |
static int |
InfoLevel1 |
static int |
InfoLevel10 |
static int |
InfoLevel2 |
static int |
InfoLevel502 |
Constructor and Description |
---|
SessionInfo()
Default constructor
|
SessionInfo(int infoLevel)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearStrings()
Clear all string values
|
String |
getClientName()
Return the client name
|
String |
getClientType()
Return the client type
|
int |
getIdleTime()
Return the session idle time in seconds
|
int |
getInformationLevel()
Get the information level
|
int |
getNumberOfOpenFiles()
Return the number of open files on this session
|
int |
getSessionTime()
Return the session time in seconds
|
String |
getTransport()
Return the transport
|
int |
getUserFlags()
Return the user flags
|
String |
getUserName()
Return the user name
|
boolean |
isGuest()
Check if the session is using the guest account
|
void |
readObject(DCEBuffer buf)
Read the session information from the DCE buffer
|
void |
readStrings(DCEBuffer buf)
Read the strings for this session information from the DCE/RPC buffer
|
void |
setClientName(String client)
Set the client name
|
void |
setIdleTime(int idleTime)
Set the session idle time in seconds
|
void |
setNumberOfOpenFiles(int files)
Set the number of open files on this session
|
void |
setSessionTime(int sessTime)
Set the session time in seconds
|
void |
setUserFlags(int flags)
Set the user flags
|
void |
setUserName(String userName)
Set the user name
|
String |
toString()
Return the session information as a string
|
boolean |
usedEncryptedPassword()
Check if the session used an encrypted password
|
public static final int InfoLevel0
public static final int InfoLevel1
public static final int InfoLevel2
public static final int InfoLevel10
public static final int InfoLevel502
public static final int Guest
public static final int EncryptedPassword
public SessionInfo()
public SessionInfo(int infoLevel)
infoLevel
- intpublic final int getInformationLevel()
public final String getClientName()
public final String getUserName()
public final int getNumberOfOpenFiles()
public final int getSessionTime()
public final int getIdleTime()
public final int getUserFlags()
public final boolean isGuest()
public final boolean usedEncryptedPassword()
public final String getClientType()
public final String getTransport()
protected final void clearStrings()
public void readObject(DCEBuffer buf) throws DCEBufferException
readObject
in interface DCEReadable
buf
- DCEBufferDCEBufferException
public void readStrings(DCEBuffer buf) throws DCEBufferException
readStrings
in interface DCEReadable
buf
- DCEBufferDCEBufferException
public final void setClientName(String client)
client
- Stringpublic final void setUserName(String userName)
userName
- Stringpublic final void setNumberOfOpenFiles(int files)
files
- intpublic final void setSessionTime(int sessTime)
sessTime
- intpublic final void setIdleTime(int idleTime)
idleTime
- intpublic final void setUserFlags(int flags)
flags
- intCopyright © 2005–2018 Alfresco Software. All rights reserved.