org.ldaptive.ad.control
Class ExtendedDnControl

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

public class ExtendedDnControl
extends AbstractControl
implements RequestControl

Request control for active directory servers to use an extended form of an object distinguished name. Control is defined as:

    extendedDnValue ::= SEQUENCE {
          flag  INTEGER
    }
 

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

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

Nested Class Summary
static class ExtendedDnControl.Flag
          Types of flags.
 
Field Summary
static String OID
          OID of this control.
 
Fields inherited from class org.ldaptive.control.AbstractControl
logger
 
Constructor Summary
ExtendedDnControl()
          Default constructor.
ExtendedDnControl(ExtendedDnControl.Flag f)
          Creates a new extended dn control.
ExtendedDnControl(ExtendedDnControl.Flag f, boolean critical)
          Creates a new extended dn control.
 
Method Summary
 byte[] encode()
          Provides the BER encoding of this control.
 ExtendedDnControl.Flag getFlag()
          Returns the flag.
 int hashCode()
          Returns the hash code for this object.
 void setFlag(ExtendedDnControl.Flag f)
          Sets the flag.
 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

ExtendedDnControl

public ExtendedDnControl()
Default constructor.


ExtendedDnControl

public ExtendedDnControl(ExtendedDnControl.Flag f)
Creates a new extended dn control.

Parameters:
f - flag

ExtendedDnControl

public ExtendedDnControl(ExtendedDnControl.Flag f,
                         boolean critical)
Creates a new extended dn control.

Parameters:
f - flag
critical - whether this control is critical
Method Detail

getFlag

public ExtendedDnControl.Flag getFlag()
Returns the flag.

Returns:
flag

setFlag

public void setFlag(ExtendedDnControl.Flag f)
Sets the flag.

Parameters:
f - flag

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.