public class TypedData extends Object implements org.apache.directory.api.asn1.Asn1Object
Modifier and Type | Class and Description |
---|---|
class |
TypedData.TD |
Constructor and Description |
---|
TypedData() |
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the TypedData length
|
void |
createNewTD()
Create a new currentTD
|
ByteBuffer |
encode(ByteBuffer buffer) |
int |
getCurrentDataType() |
byte[] |
getCurrentDataValue() |
TypedData.TD |
getCurrentTD() |
List<TypedData.TD> |
getTypedData() |
void |
setCurrentDataType(int tdType)
Set the current TD type
|
void |
setCurrentDataValue(byte[] tdData)
Set the current TD data
|
String |
toString() |
String |
toString(String tabs) |
public TypedData()
public int getCurrentDataType()
public void setCurrentDataType(int tdType)
public byte[] getCurrentDataValue()
public void setCurrentDataValue(byte[] tdData)
public TypedData.TD getCurrentTD()
public void createNewTD()
public List<TypedData.TD> getTypedData()
public int computeLength()
0x30 L1 TypedData sequence | +-- 0x30 L2 The TD sequence | +--> 0xA0 L3 tdType tag | | | +--> 0x02 L3-2 tdType (int) | +--> [0xA1 L4 tdData tag | +--> 0x04 L4-2 tdData (OCTET STRING)]
computeLength
in interface org.apache.directory.api.asn1.Asn1Object
public ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
encode
in interface org.apache.directory.api.asn1.Asn1Object
org.apache.directory.api.asn1.EncoderException
public String toString()
toString
in class Object
Object.toString()
public String toString(String tabs)
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.