public class SyncStateValueControl extends AbstractControl
Modifier and Type | Field and Description |
---|---|
static String |
CONTROL_OID
This control OID
|
decoder, value, valueLength
parent
Constructor and Description |
---|
SyncStateValueControl() |
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the SyncStateValue length.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the SyncStateValue control
|
byte[] |
getCookie() |
byte[] |
getEntryUUID() |
SyncStateTypeEnum |
getSyncStateType() |
byte[] |
getValue()
Get the control value
|
void |
setCookie(byte[] cookie) |
void |
setEntryUUID(byte[] entryUUID)
set the entryUUID
|
void |
setSyncStateType(SyncStateTypeEnum syncStateType)
set the syncState's type
|
String |
toString()
Return a String representing a Control
|
computeLength, getDecoder, getOid, hasValue, isCritical, setCritical, setValue
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
public static final String CONTROL_OID
public byte[] getCookie()
public void setCookie(byte[] cookie)
cookie
- the cookie to setpublic SyncStateTypeEnum getSyncStateType()
public void setSyncStateType(SyncStateTypeEnum syncStateType)
syncStateType
- the syncState's typepublic byte[] getEntryUUID()
public void setEntryUUID(byte[] entryUUID)
entryUUID
- the entryUUIDpublic int computeLength()
computeLength
in interface Asn1Object
computeLength
in interface CodecControl
computeLength
in class AbstractControl
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in interface CodecControl
encode
in class AbstractControl
buffer
- The encoded sinkEncoderException
- If anything goes wrong.public byte[] getValue()
getValue
in interface Control
getValue
in class AbstractControl
public String toString()
AbstractControl
toString
in class AbstractControl
Object.toString()
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.