public class DirSyncControl extends AbstractControl implements RequestControl, ResponseControl
dirSyncValue ::= SEQUENCE { flags INTEGER, maxAttributeCount INTEGER, cookie OCTET STRING }
See http://msdn.microsoft.com/en-us/library/cc223347.aspx
Modifier and Type | Class and Description |
---|---|
private static class |
DirSyncControl.CookieHandler
Parse handler implementation for the cookie.
|
static class |
DirSyncControl.Flag
Types of flags.
|
private static class |
DirSyncControl.FlagHandler
Parse handler implementation for the flag.
|
private static class |
DirSyncControl.MaxAttrCountHandler
Parse handler implementation for the maxAttributeCount.
|
Modifier and Type | Field and Description |
---|---|
private byte[] |
cookie
server generated cookie.
|
private static byte[] |
EMPTY_COOKIE
Empty byte array used for null cookies.
|
private long |
flags
flags.
|
private static int |
HASH_CODE_SEED
hash value seed.
|
private int |
maxAttributeCount
maximum attribute count.
|
static String |
OID
OID of this control.
|
logger
Constructor and Description |
---|
DirSyncControl()
Default constructor.
|
DirSyncControl(boolean critical)
Creates a new dir sync control.
|
DirSyncControl(DirSyncControl.Flag[] f)
Creates a new dir sync control.
|
DirSyncControl(DirSyncControl.Flag[] f,
boolean critical)
Creates a new dir sync control.
|
DirSyncControl(DirSyncControl.Flag[] f,
byte[] value,
boolean critical)
Creates a new dir sync control.
|
DirSyncControl(DirSyncControl.Flag[] f,
byte[] value,
int count,
boolean critical)
Creates a new dir sync control.
|
DirSyncControl(DirSyncControl.Flag[] f,
int count)
Creates a new dir sync control.
|
DirSyncControl(DirSyncControl.Flag[] f,
int count,
boolean critical)
Creates a new dir sync control.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(byte[] berValue)
Initializes this response control with the supplied BER encoded data.
|
byte[] |
encode()
Provides the BER encoding of this control.
|
boolean |
equals(Object o) |
byte[] |
getCookie()
Returns the sync request cookie.
|
long |
getFlags()
Returns the flags value.
|
int |
getMaxAttributeCount()
Returns the maximum attribute count.
|
int |
hashCode()
Returns the hash code for this object.
|
void |
setCookie(byte[] value)
Sets the sync request cookie.
|
void |
setFlags(long l)
Sets the flags.
|
void |
setMaxAttributeCount(int count)
Sets the maximum attribute count.
|
String |
toString() |
getCriticality, getOID
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCriticality, getOID
public static final String OID
private static final int HASH_CODE_SEED
private static final byte[] EMPTY_COOKIE
private long flags
private int maxAttributeCount
private byte[] cookie
public DirSyncControl()
public DirSyncControl(boolean critical)
critical
- whether this control is criticalpublic DirSyncControl(DirSyncControl.Flag[] f)
f
- request flagspublic DirSyncControl(DirSyncControl.Flag[] f, boolean critical)
f
- request flagscritical
- whether this control is criticalpublic DirSyncControl(DirSyncControl.Flag[] f, int count)
f
- request flagscount
- maximum attribute countpublic DirSyncControl(DirSyncControl.Flag[] f, int count, boolean critical)
f
- request flagscount
- maximum attribute countcritical
- whether this control is criticalpublic DirSyncControl(DirSyncControl.Flag[] f, byte[] value, boolean critical)
f
- request flagsvalue
- dir sync cookiecritical
- whether this control is criticalpublic DirSyncControl(DirSyncControl.Flag[] f, byte[] value, int count, boolean critical)
f
- request flagsvalue
- dir sync cookiecount
- maximum attribute countcritical
- whether this control is criticalpublic long getFlags()
public void setFlags(long l)
l
- flags valuepublic int getMaxAttributeCount()
public void setMaxAttributeCount(int count)
count
- maximum attribute countpublic byte[] getCookie()
public void setCookie(byte[] value)
value
- sync request cookiepublic boolean equals(Object o)
equals
in class AbstractControl
public int hashCode()
AbstractControl
hashCode
in class AbstractControl
public byte[] encode()
RequestControl
encode
in interface RequestControl
public void decode(byte[] berValue)
ResponseControl
decode
in interface ResponseControl
berValue
- BER encoded response controlCopyright © 2003-2019 Virginia Tech. All Rights Reserved.