Module jcifs

Interface SmbConstants

All Known Implementing Classes:
SmbFile, SmbNamedPipe

public interface SmbConstants
Utility class holding several protocol constrants
Author:
mbechler

This interface is intended for internal use.

  • Field Details

    • DEFAULT_PORT

      static final int DEFAULT_PORT
      Default SMB port number for direct TCP transport.
      See Also:
    • DEFAULT_MAX_MPX_COUNT

      static final int DEFAULT_MAX_MPX_COUNT
      Default maximum number of outstanding SMB requests.
      See Also:
    • DEFAULT_RESPONSE_TIMEOUT

      static final int DEFAULT_RESPONSE_TIMEOUT
      Default timeout in milliseconds for SMB responses.
      See Also:
    • DEFAULT_SO_TIMEOUT

      static final int DEFAULT_SO_TIMEOUT
      Default socket timeout in milliseconds.
      See Also:
    • DEFAULT_RCV_BUF_SIZE

      static final int DEFAULT_RCV_BUF_SIZE
      Default receive buffer size for SMB transport.
      See Also:
    • DEFAULT_SND_BUF_SIZE

      static final int DEFAULT_SND_BUF_SIZE
      Default send buffer size for SMB transport.
      See Also:
    • DEFAULT_NOTIFY_BUF_SIZE

      static final int DEFAULT_NOTIFY_BUF_SIZE
      Default buffer size for change notification responses.
      See Also:
    • DEFAULT_SSN_LIMIT

      static final int DEFAULT_SSN_LIMIT
      Default maximum number of sessions per transport connection.
      See Also:
    • DEFAULT_CONN_TIMEOUT

      static final int DEFAULT_CONN_TIMEOUT
      Default connection timeout in milliseconds.
      See Also:
    • FLAGS_NONE

      static final int FLAGS_NONE
      No flags set in SMB header.
      See Also:
    • FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCK

      static final int FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCK
      Obsolete lock and read/write and unlock flag.
      See Also:
    • FLAGS_RECEIVE_BUFFER_POSTED

      static final int FLAGS_RECEIVE_BUFFER_POSTED
      Receive buffer has been posted flag.
      See Also:
    • FLAGS_PATH_NAMES_CASELESS

      static final int FLAGS_PATH_NAMES_CASELESS
      Path names are case-insensitive flag.
      See Also:
    • FLAGS_PATH_NAMES_CANONICALIZED

      static final int FLAGS_PATH_NAMES_CANONICALIZED
      Path names are canonicalized flag.
      See Also:
    • FLAGS_OPLOCK_REQUESTED_OR_GRANTED

      static final int FLAGS_OPLOCK_REQUESTED_OR_GRANTED
      Opportunistic lock requested or granted flag.
      See Also:
    • FLAGS_NOTIFY_OF_MODIFY_ACTION

      static final int FLAGS_NOTIFY_OF_MODIFY_ACTION
      Notify client of any action which modified the file flag.
      See Also:
    • FLAGS_RESPONSE

      static final int FLAGS_RESPONSE
      Message is a response from server flag.
      See Also:
    • FLAGS2_NONE

      static final int FLAGS2_NONE
      No flags2 set in SMB header.
      See Also:
    • FLAGS2_LONG_FILENAMES

      static final int FLAGS2_LONG_FILENAMES
      Long file names are supported flag.
      See Also:
    • FLAGS2_EXTENDED_ATTRIBUTES

      static final int FLAGS2_EXTENDED_ATTRIBUTES
      Extended attributes are supported flag.
      See Also:
    • FLAGS2_SECURITY_SIGNATURES

      static final int FLAGS2_SECURITY_SIGNATURES
      Security signatures are supported flag.
      See Also:
    • FLAGS2_SECURITY_REQUIRE_SIGNATURES

      static final int FLAGS2_SECURITY_REQUIRE_SIGNATURES
      Security signatures are required flag.
      See Also:
    • FLAGS2_EXTENDED_SECURITY_NEGOTIATION

      static final int FLAGS2_EXTENDED_SECURITY_NEGOTIATION
      Extended security negotiation is supported flag.
      See Also:
    • FLAGS2_RESOLVE_PATHS_IN_DFS

      static final int FLAGS2_RESOLVE_PATHS_IN_DFS
      Resolve paths in Distributed File System flag.
      See Also:
    • FLAGS2_PERMIT_READ_IF_EXECUTE_PERM

      static final int FLAGS2_PERMIT_READ_IF_EXECUTE_PERM
      Permit read if execute permission flag.
      See Also:
    • FLAGS2_STATUS32

      static final int FLAGS2_STATUS32
      Use 32-bit status codes flag.
      See Also:
    • FLAGS2_UNICODE

      static final int FLAGS2_UNICODE
      Strings are Unicode flag.
      See Also:
    • CAP_NONE

      static final int CAP_NONE
      No capabilities.
      See Also:
    • CAP_RAW_MODE

      static final int CAP_RAW_MODE
      Raw mode transfers are supported capability.
      See Also:
    • CAP_MPX_MODE

      static final int CAP_MPX_MODE
      Multiplex mode is supported capability.
      See Also:
    • CAP_UNICODE

      static final int CAP_UNICODE
      Unicode strings are supported capability.
      See Also:
    • CAP_LARGE_FILES

      static final int CAP_LARGE_FILES
      Large files are supported capability.
      See Also:
    • CAP_NT_SMBS

      static final int CAP_NT_SMBS
      NT SMBs are supported capability.
      See Also:
    • CAP_RPC_REMOTE_APIS

      static final int CAP_RPC_REMOTE_APIS
      RPC remote APIs are supported capability.
      See Also:
    • CAP_STATUS32

      static final int CAP_STATUS32
      NT status codes are supported capability.
      See Also:
    • CAP_LEVEL_II_OPLOCKS

      static final int CAP_LEVEL_II_OPLOCKS
      Level II oplocks are supported capability.
      See Also:
    • CAP_LOCK_AND_READ

      static final int CAP_LOCK_AND_READ
      Lock and read operation is supported capability.
      See Also:
    • CAP_NT_FIND

      static final int CAP_NT_FIND
      NT find operations are supported capability.
      See Also:
    • CAP_DFS

      static final int CAP_DFS
      DFS operations are supported capability.
      See Also:
    • CAP_LARGE_READX

      static final int CAP_LARGE_READX
      Large read operations are supported capability.
      See Also:
    • CAP_LARGE_WRITEX

      static final int CAP_LARGE_WRITEX
      Large write operations are supported capability.
      See Also:
    • CAP_EXTENDED_SECURITY

      static final int CAP_EXTENDED_SECURITY
      Extended security exchanges are supported capability.
      See Also:
    • ATTR_READONLY

      static final int ATTR_READONLY
      File is marked read-only
      See Also:
    • ATTR_HIDDEN

      static final int ATTR_HIDDEN
      File is marked hidden
      See Also:
    • ATTR_SYSTEM

      static final int ATTR_SYSTEM
      File is marked a system file
      See Also:
    • ATTR_VOLUME

      static final int ATTR_VOLUME
      File is marked a volume
      See Also:
    • ATTR_DIRECTORY

      static final int ATTR_DIRECTORY
      File is a directory
      See Also:
    • ATTR_ARCHIVE

      static final int ATTR_ARCHIVE
      Files is marked to be archived
      See Also:
    • ATTR_COMPRESSED

      static final int ATTR_COMPRESSED
      File is compressed.
      See Also:
    • ATTR_NORMAL

      static final int ATTR_NORMAL
      File is a normal file.
      See Also:
    • ATTR_TEMPORARY

      static final int ATTR_TEMPORARY
      File is temporary.
      See Also:
    • FILE_READ_DATA

      static final int FILE_READ_DATA
      Permission to read data from the file.
      See Also:
    • FILE_WRITE_DATA

      static final int FILE_WRITE_DATA
      Permission to write data to the file.
      See Also:
    • FILE_APPEND_DATA

      static final int FILE_APPEND_DATA
      Permission to append data to the file.
      See Also:
    • FILE_READ_EA

      static final int FILE_READ_EA
      Permission to read extended attributes.
      See Also:
    • FILE_WRITE_EA

      static final int FILE_WRITE_EA
      Permission to write extended attributes.
      See Also:
    • FILE_EXECUTE

      static final int FILE_EXECUTE
      Permission to execute the file.
      See Also:
    • FILE_DELETE

      static final int FILE_DELETE
      Permission to delete the file.
      See Also:
    • FILE_READ_ATTRIBUTES

      static final int FILE_READ_ATTRIBUTES
      Permission to read file attributes.
      See Also:
    • FILE_WRITE_ATTRIBUTES

      static final int FILE_WRITE_ATTRIBUTES
      Permission to write file attributes.
      See Also:
    • DELETE

      static final int DELETE
      Permission to delete the object.
      See Also:
    • READ_CONTROL

      static final int READ_CONTROL
      Permission to read the security descriptor.
      See Also:
    • WRITE_DAC

      static final int WRITE_DAC
      Permission to write the discretionary access control list.
      See Also:
    • WRITE_OWNER

      static final int WRITE_OWNER
      Permission to change the owner.
      See Also:
    • SYNCHRONIZE

      static final int SYNCHRONIZE
      Permission to synchronize.
      See Also:
    • GENERIC_ALL

      static final int GENERIC_ALL
      All generic permissions.
      See Also:
    • GENERIC_EXECUTE

      static final int GENERIC_EXECUTE
      Generic execute permission.
      See Also:
    • GENERIC_WRITE

      static final int GENERIC_WRITE
      Generic write permission.
      See Also:
    • GENERIC_READ

      static final int GENERIC_READ
      Generic read permission.
      See Also:
    • FLAGS_TARGET_MUST_BE_FILE

      static final int FLAGS_TARGET_MUST_BE_FILE
      Target must be a file flag.
      See Also:
    • FLAGS_TARGET_MUST_BE_DIRECTORY

      static final int FLAGS_TARGET_MUST_BE_DIRECTORY
      Target must be a directory flag.
      See Also:
    • FLAGS_COPY_TARGET_MODE_ASCII

      static final int FLAGS_COPY_TARGET_MODE_ASCII
      Copy target in ASCII mode flag.
      See Also:
    • FLAGS_COPY_SOURCE_MODE_ASCII

      static final int FLAGS_COPY_SOURCE_MODE_ASCII
      Copy source in ASCII mode flag.
      See Also:
    • FLAGS_VERIFY_ALL_WRITES

      static final int FLAGS_VERIFY_ALL_WRITES
      Verify all write operations flag.
      See Also:
    • FLAGS_TREE_COPY

      static final int FLAGS_TREE_COPY
      Copy entire tree flag.
      See Also:
    • OPEN_FUNCTION_FAIL_IF_EXISTS

      static final int OPEN_FUNCTION_FAIL_IF_EXISTS
      Open function to fail if file exists.
      See Also:
    • OPEN_FUNCTION_OVERWRITE_IF_EXISTS

      static final int OPEN_FUNCTION_OVERWRITE_IF_EXISTS
      Open function to overwrite if file exists.
      See Also:
    • SECURITY_SHARE

      static final int SECURITY_SHARE
      Share level security mode.
      See Also:
    • SECURITY_USER

      static final int SECURITY_USER
      User level security mode.
      See Also:
    • CMD_OFFSET

      static final int CMD_OFFSET
      Offset of command field in SMB header.
      See Also:
    • ERROR_CODE_OFFSET

      static final int ERROR_CODE_OFFSET
      Offset of error code field in SMB header.
      See Also:
    • FLAGS_OFFSET

      static final int FLAGS_OFFSET
      Offset of flags field in SMB header.
      See Also:
    • SIGNATURE_OFFSET

      static final int SIGNATURE_OFFSET
      Offset of signature field in SMB header.
      See Also:
    • TID_OFFSET

      static final int TID_OFFSET
      Offset of tree ID field in SMB header.
      See Also:
    • SMB1_HEADER_LENGTH

      static final int SMB1_HEADER_LENGTH
      Length of SMB1 header in bytes.
      See Also:
    • MILLISECONDS_BETWEEN_1970_AND_1601

      static final long MILLISECONDS_BETWEEN_1970_AND_1601
      Milliseconds between January 1, 1970 and January 1, 1601.
      See Also:
    • DEFAULT_OEM_ENCODING

      static final String DEFAULT_OEM_ENCODING
      Default OEM encoding for non-Unicode strings.
      See Also:
    • FOREVER

      static final int FOREVER
      Constant representing an infinite timeout.
      See Also:
    • FILE_NO_SHARE

      static final int FILE_NO_SHARE
      When specified as the shareAccess constructor parameter, other SMB clients (including other threads making calls into jCIFS) will not be permitted to access the target file and will receive "The file is being accessed by another process" message.
      See Also:
    • FILE_SHARE_READ

      static final int FILE_SHARE_READ
      When specified as the shareAccess constructor parameter, other SMB clients will be permitted to read from the target file while this file is open. This constant may be logically OR'd with other share access flags.
      See Also:
    • FILE_SHARE_WRITE

      static final int FILE_SHARE_WRITE
      When specified as the shareAccess constructor parameter, other SMB clients will be permitted to write to the target file while this file is open. This constant may be logically OR'd with other share access flags.
      See Also:
    • FILE_SHARE_DELETE

      static final int FILE_SHARE_DELETE
      When specified as the shareAccess constructor parameter, other SMB clients will be permitted to delete the target file while this file is open. This constant may be logically OR'd with other share access flags.
      See Also:
    • DEFAULT_SHARING

      static final int DEFAULT_SHARING
      Default sharing mode for files
      See Also:
    • TYPE_FILESYSTEM

      static final int TYPE_FILESYSTEM
      Returned by SmbResource.getType() if the resource this SmbFile represents is a regular file or directory.
      See Also:
    • TYPE_WORKGROUP

      static final int TYPE_WORKGROUP
      Returned by SmbResource.getType() if the resource this SmbFile represents is a workgroup.
      See Also:
    • TYPE_SERVER

      static final int TYPE_SERVER
      Returned by SmbResource.getType() if the resource this SmbFile represents is a server.
      See Also:
    • TYPE_SHARE

      static final int TYPE_SHARE
      Returned by SmbResource.getType() if the resource this SmbFile represents is a share.
      See Also:
    • TYPE_NAMED_PIPE

      static final int TYPE_NAMED_PIPE
      Returned by SmbResource.getType() if the resource this SmbFile represents is a named pipe.
      See Also:
    • TYPE_PRINTER

      static final int TYPE_PRINTER
      Returned by SmbResource.getType() if the resource this SmbFile represents is a printer.
      See Also:
    • TYPE_COMM

      static final int TYPE_COMM
      Returned by SmbResource.getType() if the resource this SmbFile represents is a communications device.
      See Also:
    • O_RDONLY

      static final int O_RDONLY
      Open for reading only.
      See Also:
    • O_WRONLY

      static final int O_WRONLY
      Open for writing only.
      See Also:
    • O_RDWR

      static final int O_RDWR
      Open for reading and writing.
      See Also:
    • O_APPEND

      static final int O_APPEND
      Open in append mode.
      See Also:
    • O_CREAT

      static final int O_CREAT
      Create file if it does not exist.
      See Also:
    • O_EXCL

      static final int O_EXCL
      Fail if the file exists.
      See Also:
    • O_TRUNC

      static final int O_TRUNC
      Truncate file if it exists.
      See Also: