Uses of Class
org.codelibs.jcifs.smb.CIFSException
Packages that use CIFSException
Package
Description
-
Uses of CIFSException in org.codelibs.jcifs.smb
Methods in org.codelibs.jcifs.smb that throw CIFSExceptionModifier and TypeMethodDescriptionbooleanResourceFilter.accept(SmbResource resource) Tests whether the specified SMB resource should be included.booleanResourceNameFilter.accept(SmbResource parent, String name) Tests whether the specified resource name should be included.SmbWatchHandle.call()booleanSmbResource.canRead()Tests to see if the file thisSmbResourcerepresents can be read.booleanSmbResource.canWrite()Tests to see if the file thisSmbResourcerepresents exists and is not marked read-only.SmbResource.children()Fetch all childrenFetch children matching pattern, server-side filteringSmbResource.children(ResourceFilter filter) Fetch children matching the given filter.SmbResource.children(ResourceNameFilter filter) Fetch children matching the given filter.booleanCIFSContext.close()Close all connections and release resources associated with this contextvoidCloseableIterator.close()voidEmptyIterator.close()voidSmbFileHandle.close()voidSmbFileHandle.close(long lastWriteTime) Closes this file handle and optionally sets the last write timevoidSmbPipeHandle.close()booleanSmbTransportPool.close()Closes the pool and all connections in itvoidSmbTreeHandle.close()voidSmbWatchHandle.close()voidSmbResource.copyTo(SmbResource dest) This method will copy the file or directory represented by thisSmbResourceand it's sub-contents to the location specified by thedestparameter.voidSmbResource.createNewFile()Create a new file but fail if it already exists.longSmbResource.createTime()Retrieve the time thisSmbResourcewas created.voidSmbResource.delete()This method will delete the file or directory specified by thisSmbResource.booleanSmbResource.exists()Tests to see if the SMB resource exists.longSmbResource.fileIndex()Get the file indexGet a resourceSmbResourceLocator.getAddress()Returns the resolved network address of the server hosting this SMB resource.intSmbResource.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 insteadbyte[]SmbTransportPool.getChallenge(CIFSContext tc, Address dc, int port) Deprecated.functionality is broken and will be removed at some point, use actual Active Directory authentication insteadDfsResolver.getDc(CIFSContext tf, String domain) Get a connection to the domain controller for a given domainlongSmbResource.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) Gets the SIDs of members of a group.SmbPipeHandle.getInput()Gets the input stream for reading from this pipe.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.SmbTreeHandle.getOEMDomainName()Gets the OEM domain name reported by the serverSmbPipeHandle.getOutput()Gets the output stream for writing to this pipe.Get a pipe resourceSidResolver.getServerSid(CIFSContext tc, String authorityServerName) Gets the domain SID for the specified server.longSmbTreeHandle.getServerTimeZoneOffset()Gets the server timezone offset in millisecondsintSmbResource.getType()Returns type of of object thisSmbResourcerepresents.intSmbResourceLocator.getType()Returns type of of object thisSmbFilerepresents.booleanSmbResource.isDirectory()Tests to see if the file thisSmbResourcerepresents is a directory.booleanSmbResource.isFile()Tests to see if the file thisSmbResourcerepresents is not a directory.booleanSmbResource.isHidden()Tests to see if the file this SmbResource represents is marked as hidden.booleanDfsResolver.isTrustedDomain(CIFSContext tf, String domain) Checks if a domain is trusted for DFS operationsbooleanSmbResourceLocator.isWorkgroup()Determines whether this resource represents a workgroup reference.longSmbResource.lastAccess()Retrieve the last acces time of the file represented by thisSmbResourcelongSmbResource.lastModified()Retrieve the last time the file represented by thisSmbResourcewas modified.longSmbResource.length()Returns the length of thisSmbResourcein bytes.voidSmbTransportPool.logon(CIFSContext tc, Address dc) Deprecated.functionality is broken and will be removed at some point, use actual Active Directory authentication insteadvoidSmbTransportPool.logon(CIFSContext tc, Address dc, int port) Deprecated.functionality is broken and will be removed at some point, use actual Active Directory authentication insteadvoidSmbResource.mkdir()Creates a directory with the path specified by thisSmbResource.voidSmbResource.mkdirs()Creates a directory with the path specified by thisSmbResourceand any parent directories that do not exist.SmbResource.openInputStream()Opens an input stream reading the file (read only, sharable)SmbResource.openInputStream(int sharing) Opens an input stream reading the file (read only)SmbResource.openInputStream(int flags, int access, int sharing) Opens an input stream reading the file (read only)SmbResource.openOutputStream()Opens an output stream writing to the file (truncating, write only, sharable)SmbResource.openOutputStream(boolean append) Opens an output stream writing to the file (write only, read sharable)SmbResource.openOutputStream(boolean append, int sharing) Opens an output stream writing to the file (write only, exclusive write access)SmbResource.openOutputStream(boolean append, int openFlags, int access, int sharing) Opens an output stream writing to the file (write only, exclusive write access)SmbResource.openRandomAccess(String mode) Opens the file for random accessSmbResource.openRandomAccess(String mode, int sharing) Opens the file for random accessvoidSmbFileHandle.release()Releases this file handle without closing itvoidSmbResource.renameTo(SmbResource dest) Changes the name of the file thisSmbResourcerepresents to the name designated by theSmbResourceargument.voidSmbResource.renameTo(SmbResource dest, boolean replace) Changes the name of the file thisSmbResourcerepresents to the name designated by theSmbResourceargument.DfsResolver.resolve(CIFSContext tf, String domain, String root, String path) Resolve the location of a DFS pathFetch a child resourcevoidSidResolver.resolveSids(CIFSContext tc, String authorityServerName, SID[] sids) Resolve an array of SIDs using a cache and at most one MSRPC request.voidSidResolver.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.voidSmbResource.setAttributes(int attrs) Set the attributes of this file.voidSmbResource.setCreateTime(long time) Set the create time of the file.voidSmbResource.setFileTimes(long createTime, long lastModified, long lastAccess) Set the create, last modified and last access time of the file.voidSmbResource.setLastAccess(long time) Set the last access time of the file.voidSmbResource.setLastModified(long time) Set the last modified time of the file.voidSmbResource.setReadOnly()Make this file read-only.voidSmbResource.setReadWrite()Turn off the read-only attribute of this file.SmbResource.watch(int filter, boolean recursive) Creates a directory watch The server will notify the client when there are changes to the directories contentsSmbWatchHandle.watch()Get the next set of changes Will block until the server returns a set of changes that match the given filter. -
Uses of CIFSException in org.codelibs.jcifs.smb.config
Methods in org.codelibs.jcifs.smb.config that throw CIFSExceptionModifier and TypeMethodDescriptionprotected voidBaseConfiguration.initDefaults()Initializes default configuration values.Constructors in org.codelibs.jcifs.smb.config that throw CIFSExceptionModifierConstructorDescriptionprotectedConstructs a BaseConfiguration with default settingsBaseConfiguration(boolean initDefaults) Constructs a BaseConfiguration with optional default initializationConstructs a PropertyConfiguration from the provided properties. -
Uses of CIFSException in org.codelibs.jcifs.smb.context
Methods in org.codelibs.jcifs.smb.context that throw CIFSExceptionModifier and TypeMethodDescriptionbooleanAbstractCIFSContext.close()Close all connections and release resources associated with this contextbooleanBaseContext.close()Close all connections and release resources associated with this contextbooleanCIFSContextWrapper.close()Get a resourceGet a resourceGet a pipe resourceGet a pipe resourcestatic final voidSingletonContext.init(Properties props) Initialize singleton context using custom properties This method can only be called once. -
Uses of CIFSException in org.codelibs.jcifs.smb.dcerpc
Subclasses of CIFSException in org.codelibs.jcifs.smb.dcerpcModifier and TypeClassDescriptionclassException class for DCE/RPC related errors.Methods in org.codelibs.jcifs.smb.dcerpc that throw CIFSExceptionModifier and TypeMethodDescriptionabstract byte[]DcerpcHandle.getSessionKey()Gets the session key from the underlying SMB session for encryptionbyte[]DcerpcPipeHandle.getSessionKey() -
Uses of CIFSException in org.codelibs.jcifs.smb.dcerpc.ndr
Subclasses of CIFSException in org.codelibs.jcifs.smb.dcerpc.ndrModifier and TypeClassDescriptionclassException thrown when an error occurs during NDR encoding or decoding operations. -
Uses of CIFSException in org.codelibs.jcifs.smb.impl
Subclasses of CIFSException in org.codelibs.jcifs.smb.implModifier and TypeClassDescriptionclassException containing DFS referral information.classTheSmbAuthExceptionencapsulates the variety of authentication related error codes returned by an SMB server.classException thrown when reaching the end of an SMB file.classThere are hundreds of error codes that may be returned by a CIFS server.classException thrown when an SMB protocol downgrade attack is detected.classException thrown when SMB message signature validation fails.classException thrown when an unsupported SMB operation is attempted.Methods in org.codelibs.jcifs.smb.impl that throw CIFSExceptionModifier and TypeMethodDescriptionprotected final FileEntryDirFileEntryEnumIteratorBase.advance(boolean last) Advances to the next file entry in the enumeration.booleanSmbTreeHandleInternal.areSignaturesActive()Checks if SMB message signing is active for this sessionbyte[]NtlmContext.calculateMIC(byte[] data) byte[]SSPContext.calculateMIC(byte[] data) Calculates a Message Integrity Code (MIC) for the given data.SmbFile.children()SmbFile.children(ResourceFilter filter) SmbFile.children(ResourceNameFilter filter) voidDirFileEntryEnumIteratorBase.close()voidNetServerEnumIterator.close()booleanSmbTransportPoolImpl.close()Closes the pool and all connections in itprotected Type3MessageNtlmContext.createType3Message(Type2Message msg2) Creates a Type 3 message based on the received Type 2 message.voidSSPContext.dispose()Disposes of the security context and releases any associated resources.protected voidDirFileEntryEnumIteratorBase.doClose()Closes the enumeration and releases resources.protected voidDirFileEntryEnumIterator2.doCloseInternal()Performs internal closing operations for SMB2 enumeration.protected abstract voidDirFileEntryEnumIteratorBase.doCloseInternal()Performs the internal closing operations specific to the implementation.voidSmbTreeHandleInternal.ensureDFSResolved()Ensures that DFS referrals have been resolved for this treeprotected org.codelibs.jcifs.smb.impl.SmbFileHandleImplSmbFileOutputStream.ensureOpen()Ensures that the file handle is open and returns it.SmbPipeHandleInternal.ensureOpen()Ensures that the file handle is open and returns it.protected org.codelibs.jcifs.smb.impl.SmbFileHandleImplSmbPipeInputStream.ensureOpen()protected org.codelibs.jcifs.smb.impl.SmbFileHandleImplSmbPipeOutputStream.ensureOpen()protected org.codelibs.jcifs.smb.impl.SmbTreeHandleImplSmbFileOutputStream.ensureTreeConnected()Ensures that the tree connection is established.SmbPipeHandleInternal.ensureTreeConnected()Ensures that the tree connection is established and returns it.protected org.codelibs.jcifs.smb.impl.SmbTreeHandleImplSmbPipeInputStream.ensureTreeConnected()Ensures that the tree connection is established.protected org.codelibs.jcifs.smb.impl.SmbTreeHandleImplSmbPipeOutputStream.ensureTreeConnected()protected booleanDirFileEntryEnumIterator2.fetchMore()Fetches more entries from the server.protected abstract booleanDirFileEntryEnumIteratorBase.fetchMore()Fetches more entries from the server.SmbTransportInternal.getDfsReferrals(CIFSContext ctx, String name, String targetHost, String targetDomain, int rn) Gets DFS referrals for the specified path.SID[]SIDCacheImpl.getGroupMemberSids(CIFSContext tc, String authorityServerName, SID domsid, int rid, int flags) SmbPipeHandleInternal.getInput()Gets the input stream for reading from this pipe.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.intSmbTreeHandleInternal.getMaximumBufferSize()Gets the maximum buffer size supported by the serverSmbPipeHandleInternal.getOutput()intSmbTreeHandleInternal.getReceiveBufferSize()Gets the receive buffer size of the underlying SMB connectionintSmbTreeHandleInternal.getSendBufferSize()Gets the send buffer size of the underlying SMB connectionSIDCacheImpl.getServerSid(CIFSContext tc, String server) byte[]SmbPipeHandleInternal.getSessionKey()Gets the session key from the underlying SMB session.byte[]SmbSessionInternal.getSessionKey()Returns the current session key used for signing and encryption.byte[]SSPContext.getSigningKey()Gets the signing key for the session.SmbFile.getTreeHandle()Retrieves the tree handle for this SMB resourcebooleanSmbTreeHandleInternal.hasCapability(int cap) Checks if the server has the specified capabilityprotected final voidSmbFileOutputStream.init(org.codelibs.jcifs.smb.impl.SmbTreeHandleImpl th) Initialize the output stream with the tree handle configuration.byte[]SSPContext.initSecContext(byte[] token, int off, int len) Initializes the security context with the given token.protected FileEntryDirFileEntryEnumIterator2.open()Opens a directory for enumerationprotected abstract FileEntryDirFileEntryEnumIteratorBase.open()Opens the enumeration and returns the first entry.voidSmbFileInputStream.open()Ensures that the file descriptor is openendvoidSmbFileOutputStream.open()Ensures that the file descriptor is openendvoidSmbRandomAccessFile.open()Ensures that the file descriptor is openendbooleanSmbResourceLocatorInternal.overlaps(SmbResourceLocator other) Determines whether this resource path overlaps with another resource path by sharing a common root.voidSmbSessionInternal.reauthenticate()Initiate reauthenticationvoidCredentialsInternal.refresh()Refresh the credentials.voidJAASAuthenticator.refresh()Refresh the credentials.voidKerb5Authenticator.refresh()voidNtlmPasswordAuthenticator.refresh()voidSIDCacheImpl.resolveSids(CIFSContext tc, String authorityServerName, SID[] sids) Resolve an array of SIDs using a cache and at most one MSRPC request.voidSIDCacheImpl.resolveSids(CIFSContext tc, String authorityServerName, SID[] sids, int offset, int length) <T extends CommonServerMessageBlockResponse>
TSmbTreeInternal.send(Request<T> request, RequestParam... params) Sends an SMB request and returns the responsevoidNtlmContext.verifyMIC(byte[] data, byte[] mic) voidSSPContext.verifyMIC(byte[] data, byte[] mic) Verifies a Message Integrity Code (MIC) for the given data.SmbFile.watch(int filter, boolean recursive) protected <T extends ServerMessageBlock2Response>
TSmbFile.withOpen(org.codelibs.jcifs.smb.impl.SmbTreeHandleImpl th, int createDisposition, int createOptions, int fileAttributes, int desiredAccess, int shareAccess, ServerMessageBlock2Request<T> first, ServerMessageBlock2Request<?>... others) Executes a request within the context of an open file handle with full control over creation parametersprotected <T extends ServerMessageBlock2Response>
TSmbFile.withOpen(org.codelibs.jcifs.smb.impl.SmbTreeHandleImpl th, int createDisposition, int desiredAccess, int shareAccess, ServerMessageBlock2Request<T> first, ServerMessageBlock2Request<?>... others) Executes a request within the context of an open file handle with specified accessprotected <T extends ServerMessageBlock2Response>
TSmbFile.withOpen(org.codelibs.jcifs.smb.impl.SmbTreeHandleImpl th, ServerMessageBlock2Request<T> first, ServerMessageBlock2Request<?>... others) Executes a request within the context of an open file handleConstructors in org.codelibs.jcifs.smb.impl that throw CIFSExceptionModifierConstructorDescriptionDirFileEntryEnumIterator2(org.codelibs.jcifs.smb.impl.SmbTreeHandleImpl th, SmbResource parent, String wildcard, ResourceNameFilter filter, int searchAttributes) Creates a directory entry enumeration iterator for SMB2 protocol.DirFileEntryEnumIteratorBase(org.codelibs.jcifs.smb.impl.SmbTreeHandleImpl th, SmbResource parent, String wildcard, ResourceNameFilter filter, int searchAttributes) Creates a directory entry enumeration iterator.NetServerEnumIterator(SmbFile parent, org.codelibs.jcifs.smb.impl.SmbTreeHandleImpl th, String wildcard, int searchAttributes, ResourceNameFilter filter) Constructs a NetServerEnumIterator for enumerating network servers -
Uses of CIFSException in org.codelibs.jcifs.smb.internal
Subclasses of CIFSException in org.codelibs.jcifs.smb.internalModifier and TypeClassDescriptionclassException thrown when errors occur during SMB protocol message decoding. -
Uses of CIFSException in org.codelibs.jcifs.smb.internal.smb1.trans2
Methods in org.codelibs.jcifs.smb.internal.smb1.trans2 that throw CIFSExceptionModifier and TypeMethodDescription<T extends FileSystemInformation>
TGets the file system information from the response cast to the specified type.<T extends FileInformation>
TGets the file information from the response cast to the specified type. -
Uses of CIFSException in org.codelibs.jcifs.smb.internal.smb2
Methods in org.codelibs.jcifs.smb.internal.smb2 that throw CIFSExceptionModifier and TypeMethodDescriptionbyte[]Smb2EncryptionContext.decryptMessage(byte[] encryptedMessage) Decrypt an SMB2 messagebyte[]Smb2EncryptionContext.encryptMessage(byte[] message, long sessionId) Encrypt an SMB2 message -
Uses of CIFSException in org.codelibs.jcifs.smb.internal.smb2.info
Methods in org.codelibs.jcifs.smb.internal.smb2.info that throw CIFSException -
Uses of CIFSException in org.codelibs.jcifs.smb.netbios
Subclasses of CIFSException in org.codelibs.jcifs.smb.netbiosModifier and TypeClassDescriptionclassNetBIOS exception class for NBT-related errors. -
Uses of CIFSException in org.codelibs.jcifs.smb.ntlmssp
Constructors in org.codelibs.jcifs.smb.ntlmssp that throw CIFSExceptionModifierConstructorDescriptionType3Message(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. -
Uses of CIFSException in org.codelibs.jcifs.smb.ntlmssp.av
Methods in org.codelibs.jcifs.smb.ntlmssp.av that throw CIFSException -
Uses of CIFSException in org.codelibs.jcifs.smb.pac
Subclasses of CIFSException in org.codelibs.jcifs.smb.pacModifier and TypeClassDescriptionclassException thrown when PAC (Privilege Attribute Certificate) data cannot be decoded. -
Uses of CIFSException in org.codelibs.jcifs.smb.spnego
Subclasses of CIFSException in org.codelibs.jcifs.smb.spnegoModifier and TypeClassDescriptionclassException thrown during SPNEGO authentication processing. -
Uses of CIFSException in org.codelibs.jcifs.smb.util.transport
Subclasses of CIFSException in org.codelibs.jcifs.smb.util.transportModifier and TypeClassDescriptionclassException thrown when a network connection times out during SMB communication.classException thrown when a request times out during SMB communication.classException class for transport layer errors.