public abstract class AbstractAsn1Writer extends Object implements Asn1Writer
ASN1Writer
which can be used as the basis for
implementing new ASN1 writer implementations.Modifier | Constructor and Description |
---|---|
protected |
AbstractAsn1Writer()
Creates a new abstract ASN.1 writer.
|
Modifier and Type | Method and Description |
---|---|
Asn1Writer |
writeBoolean(boolean value)
Writes a boolean element using the Universal Boolean ASN.1 type tag.
|
Asn1Writer |
writeEnumerated(int value)
Writes an enumerated element using the Universal Enumerated ASN.1 type
tag.
|
Asn1Writer |
writeInteger(int value)
Writes an integer element using the Universal Integer ASN.1 type tag.
|
Asn1Writer |
writeInteger(long value)
Writes an integer element using the Universal Integer ASN.1 type tag.
|
Asn1Writer |
writeNull()
Writes a null element using the Universal Null ASN.1 type tag.
|
Asn1Writer |
writeOctetString(byte[] value)
Writes an octet string element using the Universal Octet String ASN.1
type tag.
|
Asn1Writer |
writeOctetString(byte[] value,
int offset,
int length)
Writes an octet string element using the Universal Octet String ASN.1
type tag.
|
Asn1Writer |
writeOctetString(byte type,
byte[] value)
Writes an octet string element using the provided type tag.
|
Asn1Writer |
writeOctetString(ByteSequence value)
Writes an octet string element using the Universal Octet String ASN.1
type tag.
|
Asn1Writer |
writeOctetString(CharSequence value)
Writes a string as a UTF-8 encoded octet string element using the
Universal Octet String ASN.1 type tag.
|
Asn1Writer |
writeStartSequence()
Writes a sequence element using the Universal Sequence ASN.1 type tag.
|
Asn1Writer |
writeStartSet()
Writes a set element using the Universal Set ASN.1 type tag.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, flush, writeBoolean, writeEndSequence, writeEndSet, writeEnumerated, writeInteger, writeInteger, writeNull, writeOctetString, writeOctetString, writeOctetString, writeStartSequence, writeStartSet
protected AbstractAsn1Writer()
public Asn1Writer writeBoolean(boolean value) throws IOException
Asn1Writer
writeBoolean
in interface Asn1Writer
value
- The boolean value.IOException
- If an error occurs while writing the element.public Asn1Writer writeEnumerated(int value) throws IOException
Asn1Writer
writeEnumerated
in interface Asn1Writer
value
- The enumerated value.IOException
- If an error occurs while writing the element.public Asn1Writer writeInteger(int value) throws IOException
Asn1Writer
writeInteger
in interface Asn1Writer
value
- The integer value.IOException
- If an error occurs while writing the element.public Asn1Writer writeInteger(long value) throws IOException
Asn1Writer
writeInteger
in interface Asn1Writer
value
- The integer value.IOException
- If an error occurs while writing the element.public Asn1Writer writeNull() throws IOException
Asn1Writer
writeNull
in interface Asn1Writer
IOException
- If an error occurs while writing the element.public Asn1Writer writeOctetString(byte type, byte[] value) throws IOException
Asn1Writer
writeOctetString
in interface Asn1Writer
type
- The type tag of the element.value
- The byte array containing the octet string data.IOException
- If an error occurs while writing the element.public Asn1Writer writeOctetString(byte[] value) throws IOException
Asn1Writer
writeOctetString
in interface Asn1Writer
value
- The byte array containing the octet string data.IOException
- If an error occurs while writing the element.public Asn1Writer writeOctetString(byte[] value, int offset, int length) throws IOException
Asn1Writer
writeOctetString
in interface Asn1Writer
value
- The byte array containing the octet string data.offset
- The offset in the byte array.length
- The number of bytes to write.IOException
- If an error occurs while writing the element.public Asn1Writer writeOctetString(ByteSequence value) throws IOException
Asn1Writer
writeOctetString
in interface Asn1Writer
value
- The octet string value.IOException
- If an error occurs while writing the element.public Asn1Writer writeOctetString(CharSequence value) throws IOException
Asn1Writer
writeOctetString
in interface Asn1Writer
value
- The string to be written as a UTF-8 encoded octet string.IOException
- If an error occurs while writing the element.public Asn1Writer writeStartSequence() throws IOException
Asn1Writer
Asn1Writer.writeEndSequence()
is called.writeStartSequence
in interface Asn1Writer
IOException
- If an error occurs while writing the element.public Asn1Writer writeStartSet() throws IOException
Asn1Writer
Asn1Writer.writeEndSet()
is
called.writeStartSet
in interface Asn1Writer
IOException
- If an error occurs while writing the element.Copyright © 2010-2018, ForgeRock All Rights Reserved.