Modifier and Type | Method and Description |
---|---|
boolean |
ResourceFilter.accept(SmbResource resource) |
boolean |
ResourceNameFilter.accept(SmbResource parent,
String name) |
List<FileNotifyInformation> |
SmbWatchHandle.call() |
boolean |
SmbResource.canRead()
Tests to see if the file this
SmbResource represents can be
read. |
boolean |
SmbResource.canWrite()
Tests to see if the file this
SmbResource represents
exists and is not marked read-only. |
CloseableIterator<SmbResource> |
SmbResource.children()
Fetch all children
|
CloseableIterator<SmbResource> |
SmbResource.children(ResourceFilter filter) |
CloseableIterator<SmbResource> |
SmbResource.children(ResourceNameFilter filter) |
CloseableIterator<SmbResource> |
SmbResource.children(String wildcard)
Fetch children matching pattern, server-side filtering
|
boolean |
CIFSContext.close() |
boolean |
SmbTransportPool.close()
Closes the pool and all connections in it
|
void |
SmbFileHandle.close() |
void |
SmbPipeHandle.close() |
void |
SmbTreeHandle.close() |
void |
SmbWatchHandle.close() |
void |
CloseableIterator.close() |
void |
EmptyIterator.close() |
void |
SmbFileHandle.close(long lastWriteTime) |
void |
SmbResource.copyTo(SmbResource dest)
This method will copy the file or directory represented by this
SmbResource and it's sub-contents to the location specified by the
dest parameter.
|
void |
SmbResource.createNewFile()
Create a new file but fail if it already exists.
|
long |
SmbResource.createTime()
Retrieve the time this
SmbResource was created. |
void |
SmbResource.delete()
This method will delete the file or directory specified by this
SmbResource . |
boolean |
SmbResource.exists()
Tests to see if the SMB resource exists.
|
long |
SmbResource.fileIndex()
Get the file index
|
SmbResource |
CIFSContext.get(String url)
Get a resource
|
Address |
SmbResourceLocator.getAddress() |
int |
SmbResource.getAttributes()
Return the attributes of this file.
|
byte[] |
SmbTransportPool.getChallenge(CIFSContext tc,
Address dc)
Deprecated.
functionality is broken and will be removed at some point,
use actual Active Directory authentication instead
|
byte[] |
SmbTransportPool.getChallenge(CIFSContext tc,
Address dc,
int port)
Deprecated.
functionality is broken and will be removed at some point,
use actual Active Directory authentication instead
|
SmbTransport |
DfsResolver.getDc(CIFSContext tf,
String domain)
Get a connection to the domain controller for a given domain
|
long |
SmbResource.getDiskFreeSpace()
This method returns the free disk space in bytes of the drive this share
represents or the drive on which the directory or file resides.
|
SID[] |
SidResolver.getGroupMemberSids(CIFSContext tc,
String authorityServerName,
SID domsid,
int rid,
int flags) |
InputStream |
SmbPipeHandle.getInput() |
Map<SID,List<SID>> |
SidResolver.getLocalGroupsMap(CIFSContext tc,
String authorityServerName,
int flags)
This specialized method returns a Map of users and local groups for the
target server where keys are SIDs representing an account and each value
is an ArrayList of SIDs represents the local groups that the account is
a member of.
|
String |
SmbTreeHandle.getOEMDomainName() |
OutputStream |
SmbPipeHandle.getOutput() |
SmbPipeResource |
CIFSContext.getPipe(String url,
int pipeType)
Get a pipe resource
|
SID |
SidResolver.getServerSid(CIFSContext tc,
String authorityServerName) |
long |
SmbTreeHandle.getServerTimeZoneOffset() |
int |
SmbResourceLocator.getType()
Returns type of of object this SmbFile represents.
|
int |
SmbResource.getType()
Returns type of of object this SmbResource represents.
|
boolean |
SmbResource.isDirectory()
Tests to see if the file this
SmbResource represents is a directory. |
boolean |
SmbResource.isFile()
Tests to see if the file this
SmbResource represents is not a directory. |
boolean |
SmbResource.isHidden()
Tests to see if the file this SmbResource represents is marked as
hidden.
|
boolean |
DfsResolver.isTrustedDomain(CIFSContext tf,
String domain) |
boolean |
SmbResourceLocator.isWorkgroup() |
long |
SmbResource.lastAccess()
Retrieve the last acces time of the file represented by this
SmbResource |
long |
SmbResource.lastModified()
Retrieve the last time the file represented by this
SmbResource was modified. |
long |
SmbResource.length()
Returns the length of this SmbResource in bytes.
|
void |
SmbTransportPool.logon(CIFSContext tc,
Address dc)
Deprecated.
functionality is broken and will be removed at some point,
use actual Active Directory authentication instead
|
void |
SmbTransportPool.logon(CIFSContext tc,
Address dc,
int port)
Deprecated.
functionality is broken and will be removed at some point,
use actual Active Directory authentication instead
|
void |
SmbResource.mkdir()
Creates a directory with the path specified by this
SmbResource . |
void |
SmbResource.mkdirs()
Creates a directory with the path specified by this SmbResource
and any parent directories that do not exist.
|
InputStream |
SmbResource.openInputStream()
Opens an input stream reading the file (read only, sharable)
|
InputStream |
SmbResource.openInputStream(int sharing)
Opens an input stream reading the file (read only)
|
InputStream |
SmbResource.openInputStream(int flags,
int access,
int sharing)
Opens an input stream reading the file (read only)
|
OutputStream |
SmbResource.openOutputStream()
Opens an output stream writing to the file (truncating, write only, sharable)
|
OutputStream |
SmbResource.openOutputStream(boolean append)
Opens an output stream writing to the file (write only, read sharable)
|
OutputStream |
SmbResource.openOutputStream(boolean append,
int sharing)
Opens an output stream writing to the file (write only, exclusive write access)
|
OutputStream |
SmbResource.openOutputStream(boolean append,
int openFlags,
int access,
int sharing)
Opens an output stream writing to the file (write only, exclusive write access)
|
SmbRandomAccess |
SmbResource.openRandomAccess(String mode)
Opens the file for random access
|
SmbRandomAccess |
SmbResource.openRandomAccess(String mode,
int sharing)
Opens the file for random access
|
void |
SmbFileHandle.release() |
void |
SmbResource.renameTo(SmbResource dest)
Changes the name of the file this
SmbResource represents to the name
designated by the SmbResource argument. |
void |
SmbResource.renameTo(SmbResource dest,
boolean replace)
Changes the name of the file this
SmbResource represents to the name
designated by the SmbResource argument. |
DfsReferralData |
DfsResolver.resolve(CIFSContext tf,
String domain,
String root,
String path)
Resolve the location of a DFS path
|
SmbResource |
SmbResource.resolve(String name)
Fetch a child resource
|
void |
SidResolver.resolveSids(CIFSContext tc,
String authorityServerName,
SID[] sids)
Resolve an array of SIDs using a cache and at most one MSRPC request.
|
void |
SidResolver.resolveSids(CIFSContext tc,
String authorityServerName,
SID[] sids,
int off,
int len)
Resolve part of an array of SIDs using a cache and at most one MSRPC request.
|
void |
SmbResource.setAttributes(int attrs)
Set the attributes of this file.
|
void |
SmbResource.setCreateTime(long time)
Set the create time of the file.
|
void |
SmbResource.setFileTimes(long createTime,
long lastLastModified,
long lastLastAccess)
Set the create, last modified and last access time of the file.
|
void |
SmbResource.setLastAccess(long time)
Set the last access time of the file.
|
void |
SmbResource.setLastModified(long time)
Set the last modified time of the file.
|
void |
SmbResource.setReadOnly()
Make this file read-only.
|
void |
SmbResource.setReadWrite()
Turn off the read-only attribute of this file.
|
List<FileNotifyInformation> |
SmbWatchHandle.watch()
Get the next set of changes
Will block until the server returns a set of changes that match the given filter.
|
SmbWatchHandle |
SmbResource.watch(int filter,
boolean recursive)
Creates a directory watch
The server will notify the client when there are changes to the directories contents
|
Constructor and Description |
---|
BaseConfiguration(boolean initDefaults) |
PropertyConfiguration(Properties p) |
Modifier and Type | Method and Description |
---|---|
boolean |
CIFSContextWrapper.close() |
boolean |
BaseContext.close() |
boolean |
AbstractCIFSContext.close() |
SmbResource |
CIFSContextWrapper.get(String url)
Get a resource
|
SmbResource |
BaseContext.get(String url)
Get a resource
|
SmbPipeResource |
CIFSContextWrapper.getPipe(String url,
int pipeType)
Get a pipe resource
|
SmbPipeResource |
BaseContext.getPipe(String url,
int pipeType)
Get a pipe resource
|
static void |
SingletonContext.init(Properties props)
Initialize singleton context using custom properties
This method can only be called once.
|
Modifier and Type | Class and Description |
---|---|
class |
DcerpcException |
Modifier and Type | Method and Description |
---|---|
abstract byte[] |
DcerpcHandle.getSessionKey() |
byte[] |
DcerpcPipeHandle.getSessionKey() |
Modifier and Type | Class and Description |
---|---|
class |
SMBProtocolDecodingException |
Modifier and Type | Method and Description |
---|---|
<T extends FileInformation> |
Trans2QueryPathInformationResponse.getInfo(Class<T> type) |
<T extends FileSystemInformation> |
Trans2QueryFSInformationResponse.getInfo(Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
<T extends Decodable> |
Smb2QueryInfoResponse.getInfo(Class<T> clazz) |
Modifier and Type | Class and Description |
---|---|
class |
NbtException |
Constructor and Description |
---|
Type3Message(CIFSContext tc,
Type2Message type2,
String targetName,
byte[] passwordHash,
String domain,
String user,
String workstation,
int flags)
Creates a Type-3 message in response to the given Type-2 message.
|
Type3Message(CIFSContext tc,
Type2Message type2,
String targetName,
byte[] passwordHash,
String password,
String domain,
String user,
String workstation,
int flags,
boolean nonAnonymous)
Creates a Type-3 message in response to the given Type-2 message.
|
Type3Message(CIFSContext tc,
Type2Message type2,
String targetName,
String password,
String domain,
String user,
String workstation,
int flags)
Creates a Type-3 message in response to the given Type-2 message.
|
Type3Message(CIFSContext tc,
Type2Message type2,
String targetName,
String password,
String domain,
String user,
String workstation,
int flags,
boolean nonAnonymous)
Creates a Type-3 message in response to the given Type-2 message.
|
Modifier and Type | Method and Description |
---|---|
static List<AvPair> |
AvPairs.decode(byte[] data)
Decode a list of AvPairs
|
Modifier and Type | Class and Description |
---|---|
class |
PACDecodingException |
Modifier and Type | Class and Description |
---|---|
class |
DfsReferral |
class |
SmbAuthException
The
SmbAuthException encapsulates the variety of
authentication related error codes returned by an SMB server. |
class |
SmbEndOfFileException |
class |
SmbException
There are hundreds of error codes that may be returned by a CIFS
server.
|
class |
SMBProtocolDowngradeException |
class |
SMBSignatureValidationException |
class |
SmbUnsupportedOperationException |
Modifier and Type | Method and Description |
---|---|
boolean |
SmbTreeHandleInternal.areSignaturesActive() |
byte[] |
NtlmContext.calculateMIC(byte[] data) |
byte[] |
SSPContext.calculateMIC(byte[] data) |
CloseableIterator<SmbResource> |
SmbFile.children() |
CloseableIterator<SmbResource> |
SmbFile.children(ResourceFilter filter) |
CloseableIterator<SmbResource> |
SmbFile.children(ResourceNameFilter filter) |
CloseableIterator<SmbResource> |
SmbFile.children(String wildcard) |
void |
DirFileEntryEnumIteratorBase.close() |
void |
NetServerEnumIterator.close() |
boolean |
SmbTransportPoolImpl.close()
Closes the pool and all connections in it
|
void |
SSPContext.dispose() |
void |
SmbTreeHandleInternal.ensureDFSResolved() |
SmbFileHandle |
SmbPipeHandleInternal.ensureOpen() |
SmbTreeHandleInternal |
SmbPipeHandleInternal.ensureTreeConnected() |
DfsReferralData |
SmbTransportInternal.getDfsReferrals(CIFSContext ctx,
String name,
String targetHost,
String targetDomain,
int rn) |
SID[] |
SIDCacheImpl.getGroupMemberSids(CIFSContext tc,
String authorityServerName,
SID domsid,
int rid,
int flags) |
SmbPipeInputStream |
SmbPipeHandleInternal.getInput() |
Map<SID,List<SID>> |
SIDCacheImpl.getLocalGroupsMap(CIFSContext tc,
String authorityServerName,
int flags)
This specialized method returns a Map of users and local groups for the
target server where keys are SIDs representing an account and each value
is an ArrayList of SIDs represents the local groups that the account is
a member of.
|
int |
SmbTreeHandleInternal.getMaximumBufferSize() |
SmbPipeOutputStream |
SmbPipeHandleInternal.getOutput() |
int |
SmbTreeHandleInternal.getReceiveBufferSize() |
int |
SmbTreeHandleInternal.getSendBufferSize() |
SID |
SIDCacheImpl.getServerSid(CIFSContext tc,
String server) |
byte[] |
SmbPipeHandleInternal.getSessionKey() |
byte[] |
SmbSessionInternal.getSessionKey() |
byte[] |
SSPContext.getSigningKey() |
SmbTreeHandle |
SmbFile.getTreeHandle() |
boolean |
SmbTreeHandleInternal.hasCapability(int cap) |
byte[] |
SSPContext.initSecContext(byte[] token,
int off,
int len) |
void |
SmbFileInputStream.open()
Ensures that the file descriptor is openend
|
void |
SmbRandomAccessFile.open()
Ensures that the file descriptor is openend
|
void |
SmbFileOutputStream.open()
Ensures that the file descriptor is openend
|
boolean |
SmbResourceLocatorInternal.overlaps(SmbResourceLocator other) |
void |
SmbSessionInternal.reauthenticate()
Initiate reauthentication
|
void |
JAASAuthenticator.refresh() |
void |
NtlmPasswordAuthenticator.refresh() |
void |
CredentialsInternal.refresh() |
void |
Kerb5Authenticator.refresh() |
SmbResource |
SmbFile.resolve(String name) |
void |
SIDCacheImpl.resolveSids(CIFSContext tc,
String authorityServerName,
SID[] sids)
Resolve an array of SIDs using a cache and at most one MSRPC request.
|
void |
SIDCacheImpl.resolveSids(CIFSContext tc,
String authorityServerName,
SID[] sids,
int offset,
int length) |
<T extends CommonServerMessageBlockResponse> |
SmbTreeInternal.send(Request<T> request,
RequestParam... params) |
void |
NtlmContext.verifyMIC(byte[] data,
byte[] mic) |
void |
SSPContext.verifyMIC(byte[] data,
byte[] mic) |
SmbWatchHandle |
SmbFile.watch(int filter,
boolean recursive) |
Constructor and Description |
---|
DirFileEntryEnumIterator2(jcifs.smb.SmbTreeHandleImpl th,
SmbResource parent,
String wildcard,
ResourceNameFilter filter,
int searchAttributes) |
DirFileEntryEnumIteratorBase(jcifs.smb.SmbTreeHandleImpl th,
SmbResource parent,
String wildcard,
ResourceNameFilter filter,
int searchAttributes) |
NetServerEnumIterator(SmbFile parent,
jcifs.smb.SmbTreeHandleImpl th,
String wildcard,
int searchAttributes,
ResourceNameFilter filter) |
Modifier and Type | Class and Description |
---|---|
class |
SpnegoException |
Modifier and Type | Class and Description |
---|---|
class |
ConnectionTimeoutException |
class |
RequestTimeoutException |
class |
TransportException |
Copyright © 2020. All rights reserved.