Class ReferralAddress

java.lang.Object
com.isode.dsapi.ReferralAddress

public class ReferralAddress extends Object
Class representing an address returned as one of the alternative locations to try when a directory server returns a referral. This class corresponds to the DSAPI DS_ReferralAddress structure
Author:
nh
  • Constructor Details

    • ReferralAddress

      public ReferralAddress(Referral referral, String bindAddress, DN dsaDN)
      Constructor used by JNI
      Parameters:
      referral - Referral object to which this ReferralAddress belongs
      bindAddress - bind address
      dsaDN - dsa DN (may be null)
  • Method Details

    • getBindAddress

      public String getBindAddress()
      Return the bind address for this referral address.
      Returns:
      a String which will be suitable for using when establishing a new DirectorySession
      See Also:
    • getDsaDN

      public DN getDsaDN()
      Return the DN of the DSA corresponding to this referral address. Since not all referrals include this information, the value returned may be null.
      Returns:
      the DN of the DSA for this referral address, or null if none is available.
    • toString

      public String toString()
      Returns a string containing information about this address. bind address.
      Overrides:
      toString in class Object
      Returns:
      a String containing information about the referral address.