- All Superinterfaces:
AutoCloseable,SmbSession
Internal SMB session interface providing extended session management capabilities.
Defines methods for internal session operations and state management.
- Author:
- mbechler
This interface is intended for internal use.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the current session key used for signing and encryption.getSmbTree(String share, String service) Gets or creates an SMB tree connection for the specified share and service.Returns the SMB transport associated with this session.booleanisInUse()Determines whether this session is currently in use.voidInitiate reauthenticationvoidConnect to the logon shareMethods inherited from interface org.codelibs.jcifs.smb.SmbSession
close, getConfig, getContext, unwrap
-
Method Details
-
isInUse
boolean isInUse()Determines whether this session is currently in use.- Returns:
- whether the session is in use
-
getSessionKey
Returns the current session key used for signing and encryption.- Returns:
- the current session key
- Throws:
CIFSException- if the session key cannot be retrieved
-
getTransport
SmbTransport getTransport()Returns the SMB transport associated with this session.- Returns:
- the transport for this session
-
treeConnectLogon
Connect to the logon share- Throws:
SmbException- if the connection fails
-
getSmbTree
Gets or creates an SMB tree connection for the specified share and service.- Parameters:
share- the share name to connect toservice- the service type for the connection- Returns:
- tree instance
-
reauthenticate
Initiate reauthentication- Throws:
CIFSException- if reauthentication fails
-