public class SyncRequestControl extends AbstractControl implements RequestControl
syncRequestValue ::= SEQUENCE { mode ENUMERATED { -- 0 unused refreshOnly (1), -- 2 reserved refreshAndPersist (3) }, cookie syncCookie OPTIONAL, reloadHint BOOLEAN DEFAULT FALSE }
Modifier and Type | Class and Description |
---|---|
static class |
SyncRequestControl.Mode
Types of request modes.
|
Modifier and Type | Field and Description |
---|---|
private byte[] |
cookie
server generated cookie.
|
private static int |
HASH_CODE_SEED
hash value seed.
|
static String |
OID
OID of this control.
|
private boolean |
reloadHint
reload hint.
|
private SyncRequestControl.Mode |
requestMode
request mode.
|
logger
Constructor and Description |
---|
SyncRequestControl()
Default constructor.
|
SyncRequestControl(SyncRequestControl.Mode mode)
Creates a new sync request control.
|
SyncRequestControl(SyncRequestControl.Mode mode,
boolean critical)
Creates a new sync request control.
|
SyncRequestControl(SyncRequestControl.Mode mode,
byte[] value,
boolean critical)
Creates a new sync request control.
|
SyncRequestControl(SyncRequestControl.Mode mode,
byte[] value,
boolean hint,
boolean critical)
Creates a new sync request control.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
encode()
Provides the BER encoding of this control.
|
boolean |
equals(Object o) |
byte[] |
getCookie()
Returns the sync request cookie.
|
boolean |
getReloadHint()
Returns the reload hint.
|
SyncRequestControl.Mode |
getRequestMode()
Returns the request mode.
|
int |
hashCode()
Returns the hash code for this object.
|
void |
setCookie(byte[] value)
Sets the sync request cookie.
|
void |
setReloadHint(boolean b)
Sets the reload hint.
|
void |
setRequestMode(SyncRequestControl.Mode mode)
Sets the request mode.
|
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 SyncRequestControl.Mode requestMode
private byte[] cookie
private boolean reloadHint
public SyncRequestControl()
public SyncRequestControl(SyncRequestControl.Mode mode)
mode
- request modepublic SyncRequestControl(SyncRequestControl.Mode mode, boolean critical)
mode
- request modecritical
- whether this control is criticalpublic SyncRequestControl(SyncRequestControl.Mode mode, byte[] value, boolean critical)
mode
- request modevalue
- sync request cookiecritical
- whether this control is criticalpublic SyncRequestControl(SyncRequestControl.Mode mode, byte[] value, boolean hint, boolean critical)
mode
- request modevalue
- sync request cookiehint
- reload hintcritical
- whether this control is criticalpublic SyncRequestControl.Mode getRequestMode()
public void setRequestMode(SyncRequestControl.Mode mode)
mode
- request modepublic byte[] getCookie()
public void setCookie(byte[] value)
value
- sync request cookiepublic boolean getReloadHint()
public void setReloadHint(boolean b)
b
- reload hintpublic boolean equals(Object o)
equals
in class AbstractControl
public int hashCode()
AbstractControl
hashCode
in class AbstractControl
public byte[] encode()
RequestControl
encode
in interface RequestControl
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.