Package | Description |
---|---|
jcifs | |
jcifs.smb |
Modifier and Type | Method and Description |
---|---|
byte[] |
SmbTransportPool.getChallenge(CIFSContext tc,
UniAddress dc)
Get NTLM challenge from a server
|
byte[] |
SmbTransportPool.getChallenge(CIFSContext tc,
UniAddress dc,
int port)
Get NTLM challenge from a server
|
void |
SmbTransportPool.logon(CIFSContext tc,
UniAddress dc)
Authenticate arbitrary credentials represented by the
NtlmPasswordAuthentication object against the domain controller
specified by the UniAddress parameter.
|
void |
SmbTransportPool.logon(CIFSContext tc,
UniAddress dc,
int port)
Authenticate arbitrary credentials represented by the
NtlmPasswordAuthentication object against the domain controller
specified by the UniAddress parameter.
|
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 |
SmbUnsupportedOperationException |
Modifier and Type | Method and Description |
---|---|
boolean |
DosFileFilter.accept(SmbFile file)
This returns true if the file's attributes contain any of the attributes
specified for this filter.
|
boolean |
SmbFileFilter.accept(SmbFile file) |
boolean |
SmbFilenameFilter.accept(SmbFile dir,
String name) |
boolean |
SmbFile.canRead()
Tests to see if the file this
SmbFile represents can be
read. |
boolean |
SmbFile.canWrite()
Tests to see if the file this
SmbFile represents
exists and is not marked read-only. |
void |
SmbFile.close()
Close the file handle
|
void |
SmbRandomAccessFile.close()
Close the file
|
void |
SmbTransport.connect()
Connect the transport
|
void |
SmbFile.copyTo(SmbFile dest)
This method will copy the file or directory represented by this
SmbFile and it's sub-contents to the location specified by the
dest parameter.
|
SSPContext |
SmbCredentials.createContext(CIFSContext tc,
String host,
byte[] initialToken,
boolean doSigning) |
SSPContext |
Kerb5Authenticator.createContext(CIFSContext tc,
String host,
byte[] initialToken,
boolean doSigning) |
SSPContext |
NtlmPasswordAuthentication.createContext(CIFSContext transportContext,
String host,
byte[] initialToken,
boolean doSigning) |
void |
SmbFile.createNewFile()
Create a new file but fail if it already exists.
|
long |
SmbFile.createTime()
Retrieve the time this
SmbFile was created. |
void |
SmbFile.delete()
This method will delete the file or directory specified by this
SmbFile . |
void |
SSPContext.dispose() |
void |
NtlmContext.dispose() |
boolean |
SmbFile.exists()
Tests to see if the SMB resource exists.
|
long |
SmbFile.fileIndex()
Get the file index
|
int |
SmbFile.getAttributes()
Return the attributes of this file.
|
byte[] |
SmbTransportPoolImpl.getChallenge(CIFSContext tf,
UniAddress dc) |
byte[] |
SmbTransportPoolImpl.getChallenge(CIFSContext tf,
UniAddress dc,
int port) |
String |
SmbFile.getDfsPath()
If the path of this
SmbFile falls within a DFS volume,
this method will return the referral path to which it maps. |
long |
SmbFile.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.
|
byte[] |
SSPContext.getSigningKey() |
byte[] |
NtlmPasswordAuthentication.getSigningKey(CIFSContext tc,
byte[] chlng) |
int |
SmbFile.getType()
Returns type of of object this SmbFile represents.
|
boolean |
SmbTransport.hasCapability(int cap) |
byte[] |
SSPContext.initSecContext(byte[] token,
int off,
int len) |
byte[] |
NtlmContext.initSecContext(byte[] token,
int offset,
int len) |
boolean |
SmbFile.isDirectory()
Tests to see if the file this
SmbFile represents is a directory. |
boolean |
SmbFile.isFile()
Tests to see if the file this
SmbFile represents is not a directory. |
boolean |
SmbFile.isHidden()
Tests to see if the file this SmbFile represents is marked as
hidden.
|
long |
SmbFile.lastAccess()
Retrieve the last acces time of the file represented by this
SmbFile |
long |
SmbFile.lastModified()
Retrieve the last time the file represented by this
SmbFile was modified. |
long |
SmbFile.length()
Returns the length of this SmbFile in bytes.
|
long |
SmbRandomAccessFile.length()
Get the current file length
|
String[] |
SmbFile.list()
List the contents of this SMB resource.
|
String[] |
SmbFile.list(SmbFilenameFilter filter)
List the contents of this SMB resource.
|
SmbFile[] |
SmbFile.listFiles()
List the contents of this SMB resource as an array of
SmbFile objects. |
SmbFile[] |
SmbFile.listFiles(SmbFileFilter filter)
List the contents of this SMB resource.
|
SmbFile[] |
SmbFile.listFiles(SmbFilenameFilter filter)
List the contents of this SMB resource.
|
SmbFile[] |
SmbFile.listFiles(String wildcard)
The CIFS protocol provides for DOS "wildcards" to be used as
a performance enhancement.
|
void |
SmbTransportPoolImpl.logon(CIFSContext tf,
UniAddress dc) |
void |
SmbTransportPoolImpl.logon(CIFSContext tf,
UniAddress dc,
int port) |
void |
SmbFile.mkdir()
Creates a directory with the path specified by this
SmbFile . |
void |
SmbFile.mkdirs()
Creates a directory with the path specified by this SmbFile
and any parent directories that do not exist.
|
int |
SmbRandomAccessFile.read()
Read a single byte from the current position
|
int |
SmbRandomAccessFile.read(byte[] b)
Read into buffer from current position
|
int |
SmbRandomAccessFile.read(byte[] b,
int off,
int len)
Read into buffer from current position
|
boolean |
SmbRandomAccessFile.readBoolean() |
byte |
SmbRandomAccessFile.readByte() |
char |
SmbRandomAccessFile.readChar() |
double |
SmbRandomAccessFile.readDouble() |
float |
SmbRandomAccessFile.readFloat() |
void |
SmbRandomAccessFile.readFully(byte[] b) |
void |
SmbRandomAccessFile.readFully(byte[] b,
int off,
int len) |
int |
SmbRandomAccessFile.readInt() |
String |
SmbRandomAccessFile.readLine() |
long |
SmbRandomAccessFile.readLong() |
short |
SmbRandomAccessFile.readShort() |
int |
SmbRandomAccessFile.readUnsignedByte() |
int |
SmbRandomAccessFile.readUnsignedShort() |
String |
SmbRandomAccessFile.readUTF() |
void |
SmbFile.renameTo(SmbFile dest)
Changes the name of the file this
SmbFile represents to the name
designated by the SmbFile argument. |
void |
SmbFile.setAttributes(int attrs)
Set the attributes of this file.
|
void |
SmbFile.setCreateTime(long time)
Set the create time of the file.
|
void |
SmbFile.setLastAccess(long time)
Set the last accesss time of the file.
|
void |
SmbFile.setLastModified(long time)
Set the last modified time of the file.
|
void |
SmbRandomAccessFile.setLength(long newLength)
Expand file length
|
void |
SmbFile.setReadOnly()
Make this file read-only.
|
void |
SmbFile.setReadWrite()
Turn off the read-only attribute of this file.
|
int |
SmbRandomAccessFile.skipBytes(int n) |
void |
SmbSession.treeConnect()
Establish a tree connection
|
List<FileNotifyInformation> |
SmbFile.watch(int filter,
boolean recursive)
Watches a directory for changes
Will block until the server returns a set of changes that match the given filter.
|
void |
SmbRandomAccessFile.write(byte[] b) |
void |
SmbRandomAccessFile.write(byte[] b,
int off,
int len) |
void |
SmbRandomAccessFile.write(int b) |
void |
SmbRandomAccessFile.writeBoolean(boolean v) |
void |
SmbRandomAccessFile.writeByte(int v) |
void |
SmbRandomAccessFile.writeBytes(String s) |
void |
SmbRandomAccessFile.writeChar(int v) |
void |
SmbRandomAccessFile.writeChars(String s) |
void |
SmbRandomAccessFile.writeDouble(double v) |
void |
SmbRandomAccessFile.writeFloat(float v) |
void |
SmbRandomAccessFile.writeInt(int v) |
void |
SmbRandomAccessFile.writeLong(long v) |
void |
SmbRandomAccessFile.writeShort(int v) |
void |
SmbRandomAccessFile.writeUTF(String str) |
Constructor and Description |
---|
SID(String textual)
Construct a SID from it's textual representation such as
S-1-5-21-1496946806-2192648263-3843101252-1029.
|
SigningDigest(SmbTransport transport,
NtlmPasswordAuthentication auth) |
SmbFileInputStream(SmbFile file)
Creates an
InputStream for reading bytes from a file on
an SMB server represented by the SmbFile parameter. |
SmbFileInputStream(String url,
CIFSContext tc) |
SmbFileOutputStream(SmbFile file)
Creates an
OutputStream for writing bytes to a file on
an SMB server represented by the SmbFile parameter. |
SmbFileOutputStream(SmbFile file,
boolean append)
Creates an
OutputStream for writing bytes to a file
on an SMB server addressed by the SmbFile parameter. |
SmbRandomAccessFile(SmbFile file,
String mode)
Instantiate a random access file from a
SmbFile |
SmbRandomAccessFile(String url,
String mode,
int shareAccess,
CIFSContext tc)
Instantiate a random access file from URL
|
Copyright © 2016. All rights reserved.