クラスの使用
jcifs.CIFSException
-
-
jcifsでのCIFSExceptionの使用
CIFSExceptionをスローするjcifsのメソッド 修飾子とタイプ メソッド 説明 booleanResourceFilter. accept(SmbResource resource)booleanResourceNameFilter. accept(SmbResource parent, String name)List<FileNotifyInformation>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.CloseableIterator<SmbResource>SmbResource. children()Fetch all childrenCloseableIterator<SmbResource>SmbResource. children(String wildcard)Fetch children matching pattern, server-side filteringCloseableIterator<SmbResource>SmbResource. children(ResourceFilter filter)CloseableIterator<SmbResource>SmbResource. children(ResourceNameFilter filter)booleanCIFSContext. close()voidCloseableIterator. close()voidEmptyIterator. close()voidSmbFileHandle. close()voidSmbFileHandle. close(long lastWriteTime)voidSmbPipeHandle. 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 this SmbResource and it's sub-contents to the location specified by the dest parameter.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 indexSmbResourceCIFSContext. get(String url)Get a resourceAddressSmbResourceLocator. getAddress()intSmbResource. getAttributes()Return the attributes of this file.byte[]SmbTransportPool. getChallenge(CIFSContext tc, Address dc)Get NTLM challenge from a serverbyte[]SmbTransportPool. getChallenge(CIFSContext tc, Address dc, int port)Get NTLM challenge from a serverSmbTransportDfsResolver. 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)InputStreamSmbPipeHandle. 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.StringSmbTreeHandle. getOEMDomainName()OutputStreamSmbPipeHandle. getOutput()SmbPipeResourceCIFSContext. getPipe(String url, int pipeType)Get a pipe resourceSIDSidResolver. getServerSid(CIFSContext tc, String authorityServerName)longSmbTreeHandle. getServerTimeZoneOffset()intSmbResource. getType()Returns type of of object this SmbResource represents.intSmbResourceLocator. getType()Returns type of of object this SmbFile represents.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)booleanSmbResourceLocator. isWorkgroup()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 this SmbResource in bytes.voidSmbTransportPool. logon(CIFSContext tc, Address dc)Authenticate arbitrary credentials represented by the NtlmPasswordAuthentication object against the domain controller specified by the UniAddress parameter.voidSmbTransportPool. logon(CIFSContext tc, Address dc, int port)Authenticate arbitrary credentials represented by the NtlmPasswordAuthentication object against the domain controller specified by the UniAddress parameter.voidSmbResource. mkdir()Creates a directory with the path specified by thisSmbResource.voidSmbResource. mkdirs()Creates a directory with the path specified by this SmbResource and any parent directories that do not exist.InputStreamSmbResource. openInputStream()Opens an input stream reading the file (read only, sharable)InputStreamSmbResource. openInputStream(int sharing)Opens an input stream reading the file (read only)InputStreamSmbResource. openInputStream(int flags, int access, int sharing)Opens an input stream reading the file (read only)OutputStreamSmbResource. openOutputStream()Opens an output stream writing to the file (truncating, write only, sharable)OutputStreamSmbResource. openOutputStream(boolean append)Opens an output stream writing to the file (write only, read sharable)OutputStreamSmbResource. openOutputStream(boolean append, int sharing)Opens an output stream writing to the file (write only, exclusive write access)OutputStreamSmbResource. openOutputStream(boolean append, int openFlags, int access, int sharing)Opens an output stream writing to the file (write only, exclusive write access)SmbRandomAccessSmbResource. openRandomAccess(String mode)Opens the file for random accessSmbRandomAccessSmbResource. openRandomAccess(String mode, int sharing)Opens the file for random accessvoidSmbFileHandle. release()voidSmbResource. 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.DfsReferralDataDfsResolver. resolve(CIFSContext tf, String domain, String root, String path)Resolve the location of a DFS pathSmbResourceSmbResource. resolve(String name)Fetch 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. 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.SmbWatchHandleSmbResource. watch(int filter, boolean recursive)Creates a directory watch The server will notify the client when there are changes to the directories contentsList<FileNotifyInformation>SmbWatchHandle. watch()Get the next set of changes Will block until the server returns a set of changes that match the given filter. -
jcifs.configでのCIFSExceptionの使用
CIFSExceptionをスローするjcifs.configのメソッド 修飾子とタイプ メソッド 説明 protected voidBaseConfiguration. initDefaults()CIFSExceptionをスローするjcifs.configのコンストラクタ コンストラクタ 説明 BaseConfiguration()BaseConfiguration(boolean initDefaults)PropertyConfiguration(Properties p) -
jcifs.contextでのCIFSExceptionの使用
CIFSExceptionをスローするjcifs.contextのメソッド 修飾子とタイプ メソッド 説明 booleanAbstractCIFSContext. close()booleanBaseContext. close()booleanCIFSContextWrapper. close()SmbResourceBaseContext. get(String url)Get a resourceSmbResourceCIFSContextWrapper. get(String url)Get a resourceSmbPipeResourceBaseContext. getPipe(String url, int pipeType)Get a pipe resourceSmbPipeResourceCIFSContextWrapper. getPipe(String url, int pipeType)Get a pipe resourcestatic voidSingletonContext. init(Properties props)Initialize singleton context using custom properties This method can only be called once. -
jcifs.dcerpcでのCIFSExceptionの使用
jcifs.dcerpcでのCIFSExceptionのサブクラス 修飾子とタイプ クラス 説明 classDcerpcExceptionCIFSExceptionをスローするjcifs.dcerpcのメソッド 修飾子とタイプ メソッド 説明 abstract byte[]DcerpcHandle. getSessionKey()byte[]DcerpcPipeHandle. getSessionKey() -
jcifs.dcerpc.ndrでのCIFSExceptionの使用
jcifs.dcerpc.ndrでのCIFSExceptionのサブクラス 修飾子とタイプ クラス 説明 classNdrException -
jcifs.internalでのCIFSExceptionの使用
jcifs.internalでのCIFSExceptionのサブクラス 修飾子とタイプ クラス 説明 classSMBProtocolDecodingException -
jcifs.internal.smb1.trans2でのCIFSExceptionの使用
CIFSExceptionをスローするjcifs.internal.smb1.trans2のメソッド 修飾子とタイプ メソッド 説明 <T extends FileSystemInformation>
TTrans2QueryFSInformationResponse. getInfo(Class<T> clazz)<T extends FileInformation>
TTrans2QueryPathInformationResponse. getInfo(Class<T> type) -
jcifs.internal.smb2.infoでのCIFSExceptionの使用
CIFSExceptionをスローするjcifs.internal.smb2.infoのメソッド 修飾子とタイプ メソッド 説明 <T extends Decodable>
TSmb2QueryInfoResponse. getInfo(Class<T> clazz) -
jcifs.netbiosでのCIFSExceptionの使用
jcifs.netbiosでのCIFSExceptionのサブクラス 修飾子とタイプ クラス 説明 classNbtException -
jcifs.ntlmsspでのCIFSExceptionの使用
CIFSExceptionをスローするjcifs.ntlmsspのコンストラクタ コンストラクタ 説明 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. -
jcifs.ntlmssp.avでのCIFSExceptionの使用
CIFSExceptionをスローするjcifs.ntlmssp.avのメソッド 修飾子とタイプ メソッド 説明 static List<AvPair>AvPairs. decode(byte[] data)Decode a list of AvPairs -
jcifs.pacでのCIFSExceptionの使用
jcifs.pacでのCIFSExceptionのサブクラス 修飾子とタイプ クラス 説明 classPACDecodingException -
jcifs.smbでのCIFSExceptionの使用
jcifs.smbでのCIFSExceptionのサブクラス 修飾子とタイプ クラス 説明 classDfsReferralclassSmbAuthExceptionTheSmbAuthExceptionencapsulates the variety of authentication related error codes returned by an SMB server.classSmbEndOfFileExceptionclassSmbExceptionThere are hundreds of error codes that may be returned by a CIFS server.classSMBProtocolDowngradeExceptionclassSMBSignatureValidationExceptionclassSmbUnsupportedOperationExceptionCIFSExceptionをスローするjcifs.smbのメソッド 修飾子とタイプ メソッド 説明 protected FileEntryDirFileEntryEnumIteratorBase. advance(boolean last)booleanSmbTreeHandleInternal. areSignaturesActive()byte[]NtlmContext. calculateMIC(byte[] data)byte[]SSPContext. calculateMIC(byte[] data)CloseableIterator<SmbResource>SmbFile. children()CloseableIterator<SmbResource>SmbFile. children(String wildcard)CloseableIterator<SmbResource>SmbFile. children(ResourceFilter filter)CloseableIterator<SmbResource>SmbFile. children(ResourceNameFilter filter)voidDirFileEntryEnumIteratorBase. close()voidNetServerEnumIterator. close()booleanSmbTransportPoolImpl. close()Closes the pool and all connections in itvoidSSPContext. dispose()protected voidDirFileEntryEnumIteratorBase. doClose()protected voidDirFileEntryEnumIterator2. doCloseInternal()protected abstract voidDirFileEntryEnumIteratorBase. doCloseInternal()voidSmbTreeHandleInternal. ensureDFSResolved()protected jcifs.smb.SmbFileHandleImplSmbFileOutputStream. ensureOpen()SmbFileHandleSmbPipeHandleInternal. ensureOpen()protected jcifs.smb.SmbFileHandleImplSmbPipeInputStream. ensureOpen()protected jcifs.smb.SmbFileHandleImplSmbPipeOutputStream. ensureOpen()protected jcifs.smb.SmbTreeHandleImplSmbFileOutputStream. ensureTreeConnected()SmbTreeHandleInternalSmbPipeHandleInternal. ensureTreeConnected()protected jcifs.smb.SmbTreeHandleImplSmbPipeInputStream. ensureTreeConnected()protected jcifs.smb.SmbTreeHandleImplSmbPipeOutputStream. ensureTreeConnected()protected booleanDirFileEntryEnumIterator2. fetchMore()protected abstract booleanDirFileEntryEnumIteratorBase. fetchMore()DfsReferralDataSmbTransportInternal. getDfsReferrals(CIFSContext ctx, String name, String targetHost, String targetDomain, int rn)SID[]SIDCacheImpl. getGroupMemberSids(CIFSContext tc, String authorityServerName, SID domsid, int rid, int flags)SmbPipeInputStreamSmbPipeHandleInternal. 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.intSmbTreeHandleInternal. getMaximumBufferSize()SmbPipeOutputStreamSmbPipeHandleInternal. getOutput()intSmbTreeHandleInternal. getReceiveBufferSize()intSmbTreeHandleInternal. getSendBufferSize()SIDSIDCacheImpl. getServerSid(CIFSContext tc, String server)byte[]SmbPipeHandleInternal. getSessionKey()byte[]SmbSessionInternal. getSessionKey()byte[]SSPContext. getSigningKey()SmbTreeHandleSmbFile. getTreeHandle()booleanSmbTreeHandleInternal. hasCapability(int cap)protected voidSmbFileOutputStream. init(jcifs.smb.SmbTreeHandleImpl th)byte[]SSPContext. initSecContext(byte[] token, int off, int len)protected FileEntryDirFileEntryEnumIterator2. open()protected abstract FileEntryDirFileEntryEnumIteratorBase. open()booleanSmbResourceLocatorInternal. overlaps(SmbResourceLocator other)voidSmbSessionInternal. reauthenticate()Initiate reauthenticationvoidCredentialsInternal. refresh()voidJAASAuthenticator. refresh()voidKerb5Authenticator. refresh()voidNtlmPasswordAuthenticator. refresh()SmbResourceSmbFile. resolve(String name)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)voidNtlmContext. verifyMIC(byte[] data, byte[] mic)voidSSPContext. verifyMIC(byte[] data, byte[] mic)SmbWatchHandleSmbFile. watch(int filter, boolean recursive)protected <T extends ServerMessageBlock2Response>
TSmbFile. withOpen(jcifs.smb.SmbTreeHandleImpl th, int createDisposition, int createOptions, int fileAttributes, int desiredAccess, int shareAccess, ServerMessageBlock2Request<T> first, ServerMessageBlock2Request<?>... others)protected <T extends ServerMessageBlock2Response>
TSmbFile. withOpen(jcifs.smb.SmbTreeHandleImpl th, int createDisposition, int desiredAccess, int shareAccess, ServerMessageBlock2Request<T> first, ServerMessageBlock2Request<?>... others)protected <T extends ServerMessageBlock2Response>
TSmbFile. withOpen(jcifs.smb.SmbTreeHandleImpl th, ServerMessageBlock2Request<T> first, ServerMessageBlock2Request<?>... others)CIFSExceptionをスローするjcifs.smbのコンストラクタ コンストラクタ 説明 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) -
jcifs.spnegoでのCIFSExceptionの使用
jcifs.spnegoでのCIFSExceptionのサブクラス 修飾子とタイプ クラス 説明 classSpnegoException -
jcifs.util.transportでのCIFSExceptionの使用
jcifs.util.transportでのCIFSExceptionのサブクラス 修飾子とタイプ クラス 説明 classConnectionTimeoutExceptionclassRequestTimeoutExceptionclassTransportException
-