- 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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intFiles is marked to be archivedstatic final intFile is compressed.static final intFile is a directorystatic final intFile is marked hiddenstatic final intFile is a normal file.static final intFile is marked read-onlystatic final intFile is marked a system filestatic final intFile is temporary.static final intFile is marked a volumestatic final intDFS operations are supported capability.static final intExtended security exchanges are supported capability.static final intLarge files are supported capability.static final intLarge read operations are supported capability.static final intLarge write operations are supported capability.static final intLevel II oplocks are supported capability.static final intLock and read operation is supported capability.static final intMultiplex mode is supported capability.static final intNo capabilities.static final intNT find operations are supported capability.static final intNT SMBs are supported capability.static final intRaw mode transfers are supported capability.static final intRPC remote APIs are supported capability.static final intNT status codes are supported capability.static final intUnicode strings are supported capability.static final intOffset of command field in SMB header.static final intDefault connection timeout in milliseconds.static final intDefault maximum number of outstanding SMB requests.static final intDefault buffer size for change notification responses.static final StringDefault OEM encoding for non-Unicode strings.static final intDefault SMB port number for direct TCP transport.static final intDefault receive buffer size for SMB transport.static final intDefault timeout in milliseconds for SMB responses.static final intDefault sharing mode for filesstatic final intDefault send buffer size for SMB transport.static final intDefault socket timeout in milliseconds.static final intDefault maximum number of sessions per transport connection.static final intPermission to delete the object.static final intOffset of error code field in SMB header.static final intPermission to append data to the file.static final intPermission to delete the file.static final intPermission to execute the file.static final intWhen specified as theshareAccessconstructor 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.static final intPermission to read file attributes.static final intPermission to read data from the file.static final intPermission to read extended attributes.static final intWhen specified as theshareAccessconstructor parameter, other SMB clients will be permitted to delete the target file while this file is open.static final intWhen specified as theshareAccessconstructor parameter, other SMB clients will be permitted to read from the target file while this file is open.static final intWhen specified as theshareAccessconstructor parameter, other SMB clients will be permitted to write to the target file while this file is open.static final intPermission to write file attributes.static final intPermission to write data to the file.static final intPermission to write extended attributes.static final intCopy source in ASCII mode flag.static final intCopy target in ASCII mode flag.static final intObsolete lock and read/write and unlock flag.static final intNo flags set in SMB header.static final intNotify client of any action which modified the file flag.static final intOffset of flags field in SMB header.static final intOpportunistic lock requested or granted flag.static final intPath names are canonicalized flag.static final intPath names are case-insensitive flag.static final intReceive buffer has been posted flag.static final intMessage is a response from server flag.static final intTarget must be a directory flag.static final intTarget must be a file flag.static final intCopy entire tree flag.static final intVerify all write operations flag.static final intExtended attributes are supported flag.static final intExtended security negotiation is supported flag.static final intLong file names are supported flag.static final intNo flags2 set in SMB header.static final intPermit read if execute permission flag.static final intResolve paths in Distributed File System flag.static final intSecurity signatures are required flag.static final intSecurity signatures are supported flag.static final intUse 32-bit status codes flag.static final intStrings are Unicode flag.static final intConstant representing an infinite timeout.static final intAll generic permissions.static final intGeneric execute permission.static final intGeneric read permission.static final intGeneric write permission.static final longMilliseconds between January 1, 1970 and January 1, 1601.static final intOpen in append mode.static final intCreate file if it does not exist.static final intFail if the file exists.static final intOpen for reading only.static final intOpen for reading and writing.static final intTruncate file if it exists.static final intOpen for writing only.static final intOpen function to fail if file exists.static final intOpen function to overwrite if file exists.static final intPermission to read the security descriptor.static final intShare level security mode.static final intUser level security mode.static final intOffset of signature field in SMB header.static final intLength of SMB1 header in bytes.static final intPermission to synchronize.static final intOffset of tree ID field in SMB header.static final intReturned bySmbResource.getType()if the resource thisSmbFilerepresents is a communications device.static final intReturned bySmbResource.getType()if the resource thisSmbFilerepresents is a regular file or directory.static final intReturned bySmbResource.getType()if the resource thisSmbFilerepresents is a named pipe.static final intReturned bySmbResource.getType()if the resource thisSmbFilerepresents is a printer.static final intReturned bySmbResource.getType()if the resource thisSmbFilerepresents is a server.static final intReturned bySmbResource.getType()if the resource thisSmbFilerepresents is a share.static final intReturned bySmbResource.getType()if the resource thisSmbFilerepresents is a workgroup.static final intPermission to write the discretionary access control list.static final intPermission to change the owner.
-
Field Details
-
DEFAULT_PORT
static final int DEFAULT_PORTDefault SMB port number for direct TCP transport.- See Also:
-
DEFAULT_MAX_MPX_COUNT
static final int DEFAULT_MAX_MPX_COUNTDefault maximum number of outstanding SMB requests.- See Also:
-
DEFAULT_RESPONSE_TIMEOUT
static final int DEFAULT_RESPONSE_TIMEOUTDefault timeout in milliseconds for SMB responses.- See Also:
-
DEFAULT_SO_TIMEOUT
static final int DEFAULT_SO_TIMEOUTDefault socket timeout in milliseconds.- See Also:
-
DEFAULT_RCV_BUF_SIZE
static final int DEFAULT_RCV_BUF_SIZEDefault receive buffer size for SMB transport.- See Also:
-
DEFAULT_SND_BUF_SIZE
static final int DEFAULT_SND_BUF_SIZEDefault send buffer size for SMB transport.- See Also:
-
DEFAULT_NOTIFY_BUF_SIZE
static final int DEFAULT_NOTIFY_BUF_SIZEDefault buffer size for change notification responses.- See Also:
-
DEFAULT_SSN_LIMIT
static final int DEFAULT_SSN_LIMITDefault maximum number of sessions per transport connection.- See Also:
-
DEFAULT_CONN_TIMEOUT
static final int DEFAULT_CONN_TIMEOUTDefault connection timeout in milliseconds.- See Also:
-
FLAGS_NONE
static final int FLAGS_NONENo flags set in SMB header.- See Also:
-
FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCK
static final int FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCKObsolete lock and read/write and unlock flag.- See Also:
-
FLAGS_RECEIVE_BUFFER_POSTED
static final int FLAGS_RECEIVE_BUFFER_POSTEDReceive buffer has been posted flag.- See Also:
-
FLAGS_PATH_NAMES_CASELESS
static final int FLAGS_PATH_NAMES_CASELESSPath names are case-insensitive flag.- See Also:
-
FLAGS_PATH_NAMES_CANONICALIZED
static final int FLAGS_PATH_NAMES_CANONICALIZEDPath names are canonicalized flag.- See Also:
-
FLAGS_OPLOCK_REQUESTED_OR_GRANTED
static final int FLAGS_OPLOCK_REQUESTED_OR_GRANTEDOpportunistic lock requested or granted flag.- See Also:
-
FLAGS_NOTIFY_OF_MODIFY_ACTION
static final int FLAGS_NOTIFY_OF_MODIFY_ACTIONNotify client of any action which modified the file flag.- See Also:
-
FLAGS_RESPONSE
static final int FLAGS_RESPONSEMessage is a response from server flag.- See Also:
-
FLAGS2_NONE
static final int FLAGS2_NONENo flags2 set in SMB header.- See Also:
-
FLAGS2_LONG_FILENAMES
static final int FLAGS2_LONG_FILENAMESLong file names are supported flag.- See Also:
-
FLAGS2_EXTENDED_ATTRIBUTES
static final int FLAGS2_EXTENDED_ATTRIBUTESExtended attributes are supported flag.- See Also:
-
FLAGS2_SECURITY_SIGNATURES
static final int FLAGS2_SECURITY_SIGNATURESSecurity signatures are supported flag.- See Also:
-
FLAGS2_SECURITY_REQUIRE_SIGNATURES
static final int FLAGS2_SECURITY_REQUIRE_SIGNATURESSecurity signatures are required flag.- See Also:
-
FLAGS2_EXTENDED_SECURITY_NEGOTIATION
static final int FLAGS2_EXTENDED_SECURITY_NEGOTIATIONExtended security negotiation is supported flag.- See Also:
-
FLAGS2_RESOLVE_PATHS_IN_DFS
static final int FLAGS2_RESOLVE_PATHS_IN_DFSResolve paths in Distributed File System flag.- See Also:
-
FLAGS2_PERMIT_READ_IF_EXECUTE_PERM
static final int FLAGS2_PERMIT_READ_IF_EXECUTE_PERMPermit read if execute permission flag.- See Also:
-
FLAGS2_STATUS32
static final int FLAGS2_STATUS32Use 32-bit status codes flag.- See Also:
-
FLAGS2_UNICODE
static final int FLAGS2_UNICODEStrings are Unicode flag.- See Also:
-
CAP_NONE
static final int CAP_NONENo capabilities.- See Also:
-
CAP_RAW_MODE
static final int CAP_RAW_MODERaw mode transfers are supported capability.- See Also:
-
CAP_MPX_MODE
static final int CAP_MPX_MODEMultiplex mode is supported capability.- See Also:
-
CAP_UNICODE
static final int CAP_UNICODEUnicode strings are supported capability.- See Also:
-
CAP_LARGE_FILES
static final int CAP_LARGE_FILESLarge files are supported capability.- See Also:
-
CAP_NT_SMBS
static final int CAP_NT_SMBSNT SMBs are supported capability.- See Also:
-
CAP_RPC_REMOTE_APIS
static final int CAP_RPC_REMOTE_APISRPC remote APIs are supported capability.- See Also:
-
CAP_STATUS32
static final int CAP_STATUS32NT status codes are supported capability.- See Also:
-
CAP_LEVEL_II_OPLOCKS
static final int CAP_LEVEL_II_OPLOCKSLevel II oplocks are supported capability.- See Also:
-
CAP_LOCK_AND_READ
static final int CAP_LOCK_AND_READLock and read operation is supported capability.- See Also:
-
CAP_NT_FIND
static final int CAP_NT_FINDNT find operations are supported capability.- See Also:
-
CAP_DFS
static final int CAP_DFSDFS operations are supported capability.- See Also:
-
CAP_LARGE_READX
static final int CAP_LARGE_READXLarge read operations are supported capability.- See Also:
-
CAP_LARGE_WRITEX
static final int CAP_LARGE_WRITEXLarge write operations are supported capability.- See Also:
-
CAP_EXTENDED_SECURITY
static final int CAP_EXTENDED_SECURITYExtended security exchanges are supported capability.- See Also:
-
ATTR_READONLY
static final int ATTR_READONLYFile is marked read-only- See Also:
-
ATTR_HIDDEN
static final int ATTR_HIDDENFile is marked hidden- See Also:
-
ATTR_SYSTEM
static final int ATTR_SYSTEMFile is marked a system file- See Also:
-
ATTR_VOLUME
static final int ATTR_VOLUMEFile is marked a volume- See Also:
-
ATTR_DIRECTORY
static final int ATTR_DIRECTORYFile is a directory- See Also:
-
ATTR_ARCHIVE
static final int ATTR_ARCHIVEFiles is marked to be archived- See Also:
-
ATTR_COMPRESSED
static final int ATTR_COMPRESSEDFile is compressed.- See Also:
-
ATTR_NORMAL
static final int ATTR_NORMALFile is a normal file.- See Also:
-
ATTR_TEMPORARY
static final int ATTR_TEMPORARYFile is temporary.- See Also:
-
FILE_READ_DATA
static final int FILE_READ_DATAPermission to read data from the file.- See Also:
-
FILE_WRITE_DATA
static final int FILE_WRITE_DATAPermission to write data to the file.- See Also:
-
FILE_APPEND_DATA
static final int FILE_APPEND_DATAPermission to append data to the file.- See Also:
-
FILE_READ_EA
static final int FILE_READ_EAPermission to read extended attributes.- See Also:
-
FILE_WRITE_EA
static final int FILE_WRITE_EAPermission to write extended attributes.- See Also:
-
FILE_EXECUTE
static final int FILE_EXECUTEPermission to execute the file.- See Also:
-
FILE_DELETE
static final int FILE_DELETEPermission to delete the file.- See Also:
-
FILE_READ_ATTRIBUTES
static final int FILE_READ_ATTRIBUTESPermission to read file attributes.- See Also:
-
FILE_WRITE_ATTRIBUTES
static final int FILE_WRITE_ATTRIBUTESPermission to write file attributes.- See Also:
-
DELETE
static final int DELETEPermission to delete the object.- See Also:
-
READ_CONTROL
static final int READ_CONTROLPermission to read the security descriptor.- See Also:
-
WRITE_DAC
static final int WRITE_DACPermission to write the discretionary access control list.- See Also:
-
WRITE_OWNER
static final int WRITE_OWNERPermission to change the owner.- See Also:
-
SYNCHRONIZE
static final int SYNCHRONIZEPermission to synchronize.- See Also:
-
GENERIC_ALL
static final int GENERIC_ALLAll generic permissions.- See Also:
-
GENERIC_EXECUTE
static final int GENERIC_EXECUTEGeneric execute permission.- See Also:
-
GENERIC_WRITE
static final int GENERIC_WRITEGeneric write permission.- See Also:
-
GENERIC_READ
static final int GENERIC_READGeneric read permission.- See Also:
-
FLAGS_TARGET_MUST_BE_FILE
static final int FLAGS_TARGET_MUST_BE_FILETarget must be a file flag.- See Also:
-
FLAGS_TARGET_MUST_BE_DIRECTORY
static final int FLAGS_TARGET_MUST_BE_DIRECTORYTarget must be a directory flag.- See Also:
-
FLAGS_COPY_TARGET_MODE_ASCII
static final int FLAGS_COPY_TARGET_MODE_ASCIICopy target in ASCII mode flag.- See Also:
-
FLAGS_COPY_SOURCE_MODE_ASCII
static final int FLAGS_COPY_SOURCE_MODE_ASCIICopy source in ASCII mode flag.- See Also:
-
FLAGS_VERIFY_ALL_WRITES
static final int FLAGS_VERIFY_ALL_WRITESVerify all write operations flag.- See Also:
-
FLAGS_TREE_COPY
static final int FLAGS_TREE_COPYCopy entire tree flag.- See Also:
-
OPEN_FUNCTION_FAIL_IF_EXISTS
static final int OPEN_FUNCTION_FAIL_IF_EXISTSOpen function to fail if file exists.- See Also:
-
OPEN_FUNCTION_OVERWRITE_IF_EXISTS
static final int OPEN_FUNCTION_OVERWRITE_IF_EXISTSOpen function to overwrite if file exists.- See Also:
-
SECURITY_SHARE
static final int SECURITY_SHAREShare level security mode.- See Also:
-
SECURITY_USER
static final int SECURITY_USERUser level security mode.- See Also:
-
CMD_OFFSET
static final int CMD_OFFSETOffset of command field in SMB header.- See Also:
-
ERROR_CODE_OFFSET
static final int ERROR_CODE_OFFSETOffset of error code field in SMB header.- See Also:
-
FLAGS_OFFSET
static final int FLAGS_OFFSETOffset of flags field in SMB header.- See Also:
-
SIGNATURE_OFFSET
static final int SIGNATURE_OFFSETOffset of signature field in SMB header.- See Also:
-
TID_OFFSET
static final int TID_OFFSETOffset of tree ID field in SMB header.- See Also:
-
SMB1_HEADER_LENGTH
static final int SMB1_HEADER_LENGTHLength of SMB1 header in bytes.- See Also:
-
MILLISECONDS_BETWEEN_1970_AND_1601
static final long MILLISECONDS_BETWEEN_1970_AND_1601Milliseconds between January 1, 1970 and January 1, 1601.- See Also:
-
DEFAULT_OEM_ENCODING
Default OEM encoding for non-Unicode strings.- See Also:
-
FOREVER
static final int FOREVERConstant representing an infinite timeout.- See Also:
-
FILE_NO_SHARE
static final int FILE_NO_SHAREWhen specified as theshareAccessconstructor 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_READWhen specified as theshareAccessconstructor 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_WRITEWhen specified as theshareAccessconstructor 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_DELETEWhen specified as theshareAccessconstructor 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_SHARINGDefault sharing mode for files- See Also:
-
TYPE_FILESYSTEM
static final int TYPE_FILESYSTEMReturned bySmbResource.getType()if the resource thisSmbFilerepresents is a regular file or directory.- See Also:
-
TYPE_WORKGROUP
static final int TYPE_WORKGROUPReturned bySmbResource.getType()if the resource thisSmbFilerepresents is a workgroup.- See Also:
-
TYPE_SERVER
static final int TYPE_SERVERReturned bySmbResource.getType()if the resource thisSmbFilerepresents is a server.- See Also:
-
TYPE_SHARE
static final int TYPE_SHAREReturned bySmbResource.getType()if the resource thisSmbFilerepresents is a share.- See Also:
-
TYPE_NAMED_PIPE
static final int TYPE_NAMED_PIPEReturned bySmbResource.getType()if the resource thisSmbFilerepresents is a named pipe.- See Also:
-
TYPE_PRINTER
static final int TYPE_PRINTERReturned bySmbResource.getType()if the resource thisSmbFilerepresents is a printer.- See Also:
-
TYPE_COMM
static final int TYPE_COMMReturned bySmbResource.getType()if the resource thisSmbFilerepresents is a communications device.- See Also:
-
O_RDONLY
static final int O_RDONLYOpen for reading only.- See Also:
-
O_WRONLY
static final int O_WRONLYOpen for writing only.- See Also:
-
O_RDWR
static final int O_RDWROpen for reading and writing.- See Also:
-
O_APPEND
static final int O_APPENDOpen in append mode.- See Also:
-
O_CREAT
static final int O_CREATCreate file if it does not exist.- See Also:
-
O_EXCL
static final int O_EXCLFail if the file exists.- See Also:
-
O_TRUNC
static final int O_TRUNCTruncate file if it exists.- See Also:
-