Class VerifyNameControl

java.lang.Object
org.ldaptive.control.AbstractControl
org.ldaptive.ad.control.VerifyNameControl
All Implemented Interfaces:
Control, RequestControl

public class VerifyNameControl extends AbstractControl implements RequestControl
Request control for active directory servers to use an extended form of an object distinguished name. Control is defined as:
   verifyNameValue ::= SEQUENCE {
     Flags       INTEGER
     ServerName  OCTET STRING
   }
 

See http://msdn.microsoft.com/en-us/library/cc223328.aspx

  • Field Details

  • Constructor Details

    • VerifyNameControl

      public VerifyNameControl()
      Default constructor.
    • VerifyNameControl

      public VerifyNameControl(String name)
      Creates a new verify name control.
      Parameters:
      name - server name
    • VerifyNameControl

      public VerifyNameControl(String name, boolean critical)
      Creates a new verify name control.
      Parameters:
      name - server name
      critical - whether this control is critical
  • Method Details

    • hasValue

      public boolean hasValue()
      Description copied from interface: RequestControl
      Returns whether the control has a value associated with it.
      Specified by:
      hasValue in interface RequestControl
      Returns:
      whether the control has a value
    • getServerName

      public String getServerName()
      Returns the server name.
      Returns:
      server name
    • setServerName

      public void setServerName(String name)
      Sets the server name.
      Parameters:
      name - server name
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AbstractControl
    • hashCode

      public int hashCode()
      Description copied from class: AbstractControl
      Returns the hash code for this object.
      Specified by:
      hashCode in class AbstractControl
      Returns:
      hash code
    • toString

      public String toString()
      Overrides:
      toString in class AbstractControl
    • encode

      public byte[] encode()
      Description copied from interface: RequestControl
      Provides the BER encoding of this control.
      Specified by:
      encode in interface RequestControl
      Returns:
      BER encoded request control