Package jcifs.smb
Interface SmbTransportInternal
-
- All Superinterfaces:
AutoCloseable,SmbTransport
public interface SmbTransportInternal extends SmbTransport
- Author:
- mbechler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandisconnect(boolean hard, boolean inuse)booleanensureConnected()DfsReferralDatagetDfsReferrals(CIFSContext ctx, String name, String targetHost, String targetDomain, int rn)intgetInflightRequests()byte[]getServerEncryptionKey()SmbSessiongetSmbSession(CIFSContext ctx)SmbSessiongetSmbSession(CIFSContext tf, String targetHost, String targetDomain)booleanhasCapability(int cap)booleanisDisconnected()booleanisSigningEnforced()booleanisSigningOptional()booleanisSMB2()-
Methods inherited from interface jcifs.SmbTransport
close, getContext, getRemoteAddress, getRemoteHostName, unwrap
-
-
-
-
Method Detail
-
hasCapability
boolean hasCapability(int cap) throws SmbException- Parameters:
cap-- Returns:
- whether the transport has the given capability
- Throws:
SmbException
-
isDisconnected
boolean isDisconnected()
- Returns:
- whether the transport has been disconnected
-
disconnect
boolean disconnect(boolean hard, boolean inuse) throws IOException- Parameters:
hard-inuse-- Returns:
- whether the connection was in use
- Throws:
IOException
-
ensureConnected
boolean ensureConnected() throws IOException- Returns:
- whether the transport was connected
- Throws:
SmbExceptionIOException
-
getDfsReferrals
DfsReferralData getDfsReferrals(CIFSContext ctx, String name, String targetHost, String targetDomain, int rn) throws CIFSException
- Parameters:
ctx-name-targetHost-targetDomain-rn-- Returns:
- dfs referral
- Throws:
SmbExceptionCIFSException
-
isSigningOptional
boolean isSigningOptional() throws SmbException- Returns:
- whether signatures are supported but not required
- Throws:
SmbException
-
isSigningEnforced
boolean isSigningEnforced() throws SmbException- Returns:
- whether signatures are enforced from either side
- Throws:
SmbException
-
getServerEncryptionKey
byte[] getServerEncryptionKey()
- Returns:
- the encryption key used by the server
-
getSmbSession
SmbSession getSmbSession(CIFSContext ctx)
- Parameters:
ctx-- Returns:
- session
-
getSmbSession
SmbSession getSmbSession(CIFSContext tf, String targetHost, String targetDomain)
- Parameters:
tf-targetHost-targetDomain-- Returns:
- session
-
isSMB2
boolean isSMB2() throws SmbException- Returns:
- whether this is a SMB2 connection
- Throws:
SmbException
-
getInflightRequests
int getInflightRequests()
- Returns:
- number of inflight requests
-
-