Package org.ldaptive.control
Class SyncStateControl
java.lang.Object
org.ldaptive.control.AbstractControl
org.ldaptive.control.AbstractResponseControl
org.ldaptive.control.SyncStateControl
- All Implemented Interfaces:
Control,ResponseControl,Freezable
Response control for ldap content synchronization. See RFC 4533. Control is defined as:
syncStateValue ::= SEQUENCE {
state ENUMERATED {
present (0),
add (1),
modify (2),
delete (3)
},
entryUUID syncUUID,
cookie syncCookie OPTIONAL
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classParse handler implementation for the cookie.private static classParse handler implementation for the entry uuid.static enumTypes of states.private static classParse handler implementation for the sync state. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]server generated cookie.private UUIDsync UUID.private static final inthash code seed.static final StringOID of this control.private SyncStateControl.Statesync state.Fields inherited from class org.ldaptive.control.AbstractControl
logger -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SyncStateControl(boolean critical) Creates a new sync state control.Creates a new sync state control.SyncStateControl(SyncStateControl.State state, boolean critical) Creates a new sync state control.SyncStateControl(SyncStateControl.State state, UUID uuid, boolean critical) Creates a new sync state control.SyncStateControl(SyncStateControl.State state, UUID uuid, byte[] value, boolean critical) Creates a new sync state control. -
Method Summary
Methods inherited from class org.ldaptive.control.AbstractResponseControl
assertMutable, freeze, freezeAndAssertMutable, isFrozenMethods inherited from class org.ldaptive.control.AbstractControl
getCriticality, getOIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ldaptive.control.Control
getCriticality, getOID
-
Field Details
-
OID
OID of this control.- See Also:
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
syncState
sync state. -
entryUuid
sync UUID. -
cookie
private byte[] cookieserver generated cookie.
-
-
Constructor Details
-
SyncStateControl
public SyncStateControl()Default constructor. -
SyncStateControl
public SyncStateControl(boolean critical) Creates a new sync state control.- Parameters:
critical- whether this control is critical
-
SyncStateControl
Creates a new sync state control.- Parameters:
state- sync state
-
SyncStateControl
Creates a new sync state control.- Parameters:
state- sync statecritical- whether this control is critical
-
SyncStateControl
Creates a new sync state control.- Parameters:
state- sync stateuuid- sync entry uuidcritical- whether this control is critical
-
SyncStateControl
Creates a new sync state control.- Parameters:
state- sync stateuuid- sync entry uuidvalue- sync state cookiecritical- whether this control is critical
-
-
Method Details
-
getSyncState
Returns the sync state.- Returns:
- sync state
-
getEntryUuid
Returns the entry uuid.- Returns:
- entry uuid
-
getCookie
public byte[] getCookie()Returns the sync state cookie.- Returns:
- sync state cookie
-
equals
- Overrides:
equalsin classAbstractControl
-
hashCode
public int hashCode()Description copied from class:AbstractControlReturns the hash code for this object.- Specified by:
hashCodein classAbstractControl- Returns:
- hash code
-
toString
- Overrides:
toStringin classAbstractControl
-
decode
Description copied from interface:ResponseControlInitializes this response control with the supplied BER encoded data.- Parameters:
encoded- BER encoded response control
-