|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.starla.smb.SMBSession
SMB session class
Field Summary | |
static int |
DBGDumpPacket
Debug option to enable dump of tx/rx packets |
static int |
DBGHexDump
Debug option to hex dump packet data |
static int |
DBGPacketType
Debug option to dump tx/rx packet type |
static int |
DEFAULT_BUFSIZE
Default SMB packet size to allocate |
static int |
EncryptPass
|
static int |
RawRead
Various session status flags |
static int |
RawWrite
|
static int |
UserMode
|
Constructor Summary | |
SMBSession(PCShare shr,
int dialect)
Construct an SMB session |
Method Summary | |
void |
CloseSession()
Close this connection with the remote server. |
int |
getDeviceType()
Get the device type that this session is connected to. |
int |
getDialect()
Get the SMB dialect property |
java.lang.String |
getDomain()
Get the servers primary domain name |
byte[] |
getEncryptionKey()
This method was created in VisualAge. |
java.lang.String |
getLANManagerType()
Get the servers LAN manager type |
int |
getMaximumPacketSize()
Get the maximum packet size allowed for this session |
java.lang.String |
getOperatingSystem()
Get the servers operating system type |
java.lang.String |
getPassword()
Get the remote share password string |
java.lang.String |
getServer()
Get the remote server name |
boolean |
getSessionFlag(int flg)
This method was created in VisualAge. |
int |
getSessionId()
Get the session identifier property |
java.lang.String |
getShareName()
Get the remote share name |
int |
getUserId()
Return the assigned use id for this SMB session |
java.lang.String |
getUserName()
Get the remote share user name string |
static boolean |
hasDebugOption(int opt)
Determine if the specified debugging option is enabled |
boolean |
isActive()
Determine if the session is valid, ie. |
static boolean |
isDebug()
Determine if SMB session debugging is enabled |
static void |
print(java.lang.String dbgstr)
Output a string to the session debug stream |
static void |
println()
Output a newline to the session debug stream |
static void |
println(java.lang.String dbgstr)
Output a string to the session debug stream |
static void |
setDebug(int dbg)
Enable/disable SMB session debugging |
void |
setEncryptionKey(byte[] key)
This method was created in VisualAge. |
void |
setRawMode(int rawMode)
This method was created in VisualAge. |
void |
setSecurityMode(int secMode)
This method was created in VisualAge. |
java.lang.String |
toString()
Output the session details as a string |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int DBGPacketType
public static final int DBGDumpPacket
public static final int DBGHexDump
public static final int DEFAULT_BUFSIZE
public static final int RawRead
public static final int RawWrite
public static final int UserMode
public static final int EncryptPass
Constructor Detail |
public SMBSession(PCShare shr, int dialect)
shr
- Remote server details.dialect
- SMB dialect for this session.Method Detail |
public void CloseSession() throws java.io.IOException
public final int getDeviceType()
public final int getDialect()
public final java.lang.String getDomain()
public final byte[] getEncryptionKey()
public final java.lang.String getLANManagerType()
public final int getMaximumPacketSize()
public final java.lang.String getOperatingSystem()
public final java.lang.String getPassword()
public final java.lang.String getServer()
public final boolean getSessionFlag(int flg)
flg
- intpublic final int getSessionId()
public final java.lang.String getShareName()
public final int getUserId()
public final java.lang.String getUserName()
public static boolean hasDebugOption(int opt)
opt
- Debug option bit maskpublic final boolean isActive()
public static boolean isDebug()
public static void print(java.lang.String dbgstr)
dbgstr
- Debug stringpublic static void println()
public static void println(java.lang.String dbgstr)
dbgstr
- Debug stringpublic static void setDebug(int dbg)
dbg
- Bit mask of debug options to enable, or zero to disablepublic final void setEncryptionKey(byte[] key)
key
- byte[]public final void setRawMode(int rawMode)
flg
- intpublic final void setSecurityMode(int secMode)
secMode
- intpublic java.lang.String toString()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |