Module jcifs

Interface DfsResolver

All Known Implementing Classes:
DfsImpl

public interface DfsResolver
This is an internal API.
Author:
mbechler

This interface is intended for internal use.

  • Method Details

    • isTrustedDomain

      boolean isTrustedDomain(CIFSContext tf, String domain) throws CIFSException
      Checks if a domain is trusted for DFS operations
      Parameters:
      tf - the CIFS context
      domain - the domain name to check
      Returns:
      whether the given domain is trusted
      Throws:
      CIFSException - if the operation fails
    • getDc

      SmbTransport getDc(CIFSContext tf, String domain) throws CIFSException
      Get a connection to the domain controller for a given domain
      Parameters:
      tf - the CIFS context
      domain - the domain name
      Returns:
      connection to the domain controller
      Throws:
      CIFSException - if the connection fails
    • resolve

      DfsReferralData resolve(CIFSContext tf, String domain, String root, String path) throws CIFSException
      Resolve the location of a DFS path
      Parameters:
      domain - the domain for the DFS referral
      root - the DFS root share
      path - the DFS path to resolve
      tf - the CIFS context containing configuration and credentials
      Returns:
      the final referral for the given DFS path
      Throws:
      CIFSException - if an error occurs during resolution
      SmbAuthException - if authentication fails
    • cache

      void cache(CIFSContext tc, String path, DfsReferralData dr)
      Add a referral to the cache
      Parameters:
      path - the DFS path for this referral
      dr - the DFS referral data to cache
      tc - the CIFS context containing configuration