org.ldaptive.ad.control
Class VerifyNameControl

java.lang.Object
  extended by org.ldaptive.control.AbstractControl
      extended by 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

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Field Summary
static String OID
          OID of this control.
 
Fields inherited from class org.ldaptive.control.AbstractControl
logger
 
Constructor Summary
VerifyNameControl()
          Default constructor.
VerifyNameControl(String name)
          Creates a new verify name control.
VerifyNameControl(String name, boolean critical)
          Creates a new verify name control.
 
Method Summary
 byte[] encode()
          Provides the BER encoding of this control.
 String getServerName()
          Returns the server name.
 int hashCode()
          Returns the hash code for this object.
 void setServerName(String name)
          Sets the server name.
 String toString()
          
 
Methods inherited from class org.ldaptive.control.AbstractControl
equals, getCriticality, getOID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ldaptive.control.Control
getCriticality, getOID
 

Field Detail

OID

public static final String OID
OID of this control.

See Also:
Constant Field Values
Constructor Detail

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 Detail

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

hashCode

public int hashCode()
Returns the hash code for this object.

Specified by:
hashCode in class AbstractControl
Returns:
hash code

toString

public String toString()

Overrides:
toString in class Object

encode

public byte[] encode()
Provides the BER encoding of this control.

Specified by:
encode in interface RequestControl
Returns:
BER encoded request control


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.