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(String 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, waitclose, flush, writeBoolean, writeEndSequence, writeEndSet, writeEnumerated, writeInteger, writeInteger, writeNull, writeOctetString, writeOctetString, writeOctetString, writeStartSequence, writeStartSetprotected AbstractASN1Writer()
public ASN1Writer writeBoolean(boolean value) throws IOException
writeBoolean in interface ASN1Writervalue - The boolean value.IOException - If an error occurs while writing the element.public ASN1Writer writeEnumerated(int value) throws IOException
writeEnumerated in interface ASN1Writervalue - The enumerated value.IOException - If an error occurs while writing the element.public ASN1Writer writeInteger(int value) throws IOException
writeInteger in interface ASN1Writervalue - The integer value.IOException - If an error occurs while writing the element.public ASN1Writer writeInteger(long value) throws IOException
writeInteger in interface ASN1Writervalue - The integer value.IOException - If an error occurs while writing the element.public ASN1Writer writeNull() throws IOException
writeNull in interface ASN1WriterIOException - If an error occurs while writing the element.public ASN1Writer writeOctetString(byte type, byte[] value) throws IOException
writeOctetString in interface ASN1Writertype - 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
writeOctetString in interface ASN1Writervalue - 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
writeOctetString in interface ASN1Writervalue - 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
writeOctetString in interface ASN1Writervalue - The octet string value.IOException - If an error occurs while writing the element.public ASN1Writer writeOctetString(String value) throws IOException
writeOctetString in interface ASN1Writervalue - 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.writeEndSequence() is called.writeStartSequence in interface ASN1WriterIOException - If an error occurs while writing the element.public ASN1Writer writeStartSet() throws IOException
ASN1Writer.writeEndSet() is
called.writeStartSet in interface ASN1WriterIOException - If an error occurs while writing the element.Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.