Package jcifs

Interface CIFSContext

    • Method Detail

      • getPipe

        SmbPipeResource getPipe​(String url,
                                int pipeType)
                         throws CIFSException
        Get a pipe resource
        Parameters:
        url -
        pipeType - the type of the pipe
        Returns:
        the SMB pipe resource at the specified location
        Throws:
        CIFSException
      • getConfig

        Configuration getConfig()
        Returns:
        the active configuration
      • getNameServiceClient

        NameServiceClient getNameServiceClient()
        Returns:
        the name server client
      • getBufferCache

        BufferCache getBufferCache()
        Returns:
        the buffer cache
      • getTransportPool

        SmbTransportPool getTransportPool()
        Returns:
        the transport pool
      • getDfs

        DfsResolver getDfs()
        Returns:
        the DFS instance for this context
      • getSIDResolver

        SidResolver getSIDResolver()
        Returns:
        the SID resolver for this context
      • getCredentials

        Credentials getCredentials()
        Returns:
        the used credentials
      • getUrlHandler

        URLStreamHandler getUrlHandler()
        Returns:
        an URL handler using this context
      • hasDefaultCredentials

        boolean hasDefaultCredentials()
        Returns:
        whether default credentials are available
      • withDefaultCredentials

        CIFSContext withDefaultCredentials()
        Returns:
        a child context using the configured default credentials
      • withAnonymousCredentials

        CIFSContext withAnonymousCredentials()
        Returns:
        a child context using anonymous credentials
      • withGuestCrendentials

        CIFSContext withGuestCrendentials()
        Returns:
        a child context using guest credentials
      • withCredentials

        CIFSContext withCredentials​(Credentials creds)
        Parameters:
        creds -
        Returns:
        a child context using using the given credentials
      • renewCredentials

        boolean renewCredentials​(String locationHint,
                                 Throwable error)
        Parameters:
        locationHint -
        error -
        Returns:
        whether new credentials are obtained