Uses of Class
org.forgerock.opendj.io.Asn1Writer
Packages that use Asn1Writer
-
Uses of Asn1Writer in org.forgerock.opendj.io
Methods in org.forgerock.opendj.io that return Asn1WriterModifier and TypeMethodDescriptionstatic Asn1Writer
Asn1.getWriter()
Returns an ASN.1 writer with an initial capacity of 32 bytes.static Asn1Writer
Asn1.getWriter
(int initialCapacity) Returns an ASN.1 writer with the provided initial capacity.Asn1Writer.writeAsn1Element
(byte[] asn1Element) Writes exactly the provided bytes without encoding the data.Asn1Writer.writeAsn1Element
(byte[] asn1Element, int offset, int length) Writes exactly the provided bytes without encoding the data.Asn1Writer.writeAsn1Element
(ByteString asn1Element) Writes exactly the provided byte string without encoding the data.Asn1Writer.writeBitString
(byte type, BitSet value) Writes the providedbitSet
as a bitstring, the trailing zero bits are encoded as unused, using the provided type tag.Asn1Writer.writeBitString
(byte type, ByteString value) Writes the provided bit string with zero unused bits using the provided type tag.Asn1Writer.writeBitString
(BitSet value) Writes the providedbitSet
as a bit string, the trailing zero bits are encoded as unused, using the Universal Bit String ASN.1 type tag.Asn1Writer.writeBitString
(ByteString value) Writes the provided bit string with zero unused bits using the Universal Bit String ASN.1 type tag.Asn1Writer.writeBoolean
(boolean value) Writes a boolean element using the Universal Boolean ASN.1 type tag.Asn1Writer.writeBoolean
(byte type, boolean value) Writes a boolean element using the provided type tag.Asn1Writer.writeEnumerated
(byte type, int value) Writes an enumerated element using the provided type tag.Asn1Writer.writeEnumerated
(int value) Writes an enumerated element using the Universal Enumerated ASN.1 type tag.Asn1Writer.writeExplicitTag
(byte type) Writes an explicit tag element.Asn1Writer.writeExplicitTag
(long type) Writes an explicit tag element having the provided multi-byte tag type encoded as described inAsn1Tag.numberMultiByte(long)
.Asn1Writer.writeGeneralizedTime
(byte type, Instant value) Writes a generalized time without fractional seconds, using the provided type tag.Asn1Writer.writeGeneralizedTime
(Instant value) Writes a generalized time without fractional seconds, using the Universal Generalized Time ASN.1 type tag.Asn1Writer.writeInteger
(byte type, int value) Writes an integer element using the provided type tag.Asn1Writer.writeInteger
(byte type, long value) Writes an integer element using the provided type tag.Asn1Writer.writeInteger
(byte type, BigInteger value) Writes an integer element from the providedBigInteger
using the provided 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.writeInteger
(BigInteger value) Writes an integer element from the providedBigInteger
value using the Universal Integer ASN.1 type tag.Writes the X.501 type Name as an RDN sequence with the provided type tag.Writes the X.501 type Name as an RDN sequence.Asn1Writer.writeNull()
Writes a null element using the Universal Null ASN.1 type tag.Asn1Writer.writeNull
(byte type) Writes a null element using the provided type tag.Asn1Writer.writeObjectIdentifier
(byte type, String oid) Writes the provided object identifier with the provided type tag.Asn1Writer.writeObjectIdentifier
(String oid) Writes the provided object identifier using the Universal Object Identifier 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
(byte type, byte[] value, int offset, int length) Writes an octet string element using the provided type tag.Asn1Writer.writeOctetString
(byte type, CharSequence value) Writes a string as a UTF-8 encoded octet string element using the provided type tag.Asn1Writer.writeOctetString
(byte type, ByteString value) Writes an octet string element using the provided 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.writeOctetString
(ByteString value) Writes an octet string element using the Universal Octet String ASN.1 type tag.Asn1Writer.writeSequence()
Writes a sequence element using the Universal Sequence ASN.1 type tag.Asn1Writer.writeSequence
(byte type) Writes a sequence element using the provided type tag.Asn1Writer.writeSequenceOfOctetStrings
(Collection<ByteString> values) Writes a sequence of octet string elements using the Universal Sequence ASN.1 type tag for the sequence and Universal Octet String ASN.1 type tag for the elements.Asn1Writer.writeSequenceOfUtf8OctetStrings
(Collection<? extends CharSequence> values) Writes a sequence of strings as a sequence of UTF-8 encoded octet string elements using the Universal Sequence ASN.1 type tag for the sequence and Universal Octet String ASN.1 type tag for the elements.Asn1Writer.writeSet()
Writes a set element using the Universal Set ASN.1 type tag.Asn1Writer.writeSet
(byte type) Writes a set element using the provided type tag.Asn1Writer.writeSetOfOctetStrings
(Collection<ByteString> values) Writes a set of octet string elements using the Universal Set ASN.1 type tag for the set and Universal Octet String ASN.1 type tag for the elements.Asn1Writer.writeSetOfUtf8OctetStrings
(Collection<? extends CharSequence> values) Writes a set of strings as a set of UTF-8 encoded octet string elements using the Universal Set ASN.1 type tag for the set and Universal Octet String ASN.1 type tag for the elements.Asn1Writer.writeUtcTime
(byte type, Instant value) Writes a UTCTime without fractional seconds using the provided type tag.Asn1Writer.writeUtcTime
(Instant value) Writes a UTC time without fractional seconds using the Universal UTC Time ASN.1 type tag.Methods in org.forgerock.opendj.io with parameters of type Asn1WriterModifier and TypeMethodDescriptionstatic LdapWriter
Ldap.getWriter
(Asn1Writer asn1Writer, int ldapVersion) Creates a new LDAP writer which will write LDAP messages to the provided ASN.1 writer.static void
Ldap.writeAttribute
(Asn1Writer writer, Attribute attribute) Writes anAttribute
to the providedAsn1Writer
.static void
Ldap.writeEntry
(Asn1Writer writer, Entry entry) Writes anEntry
to the providedAsn1Writer
.static void
Ldap.writeFilter
(Asn1Writer writer, Filter filter) Writes aFilter
to the providedAsn1Writer
.static void
Ldap.writeModification
(Asn1Writer writer, Modification modification) Writes anModification
to the providedAsn1Writer
.Method parameters in org.forgerock.opendj.io with type arguments of type Asn1WriterModifier and TypeMethodDescriptionstatic ByteString
Asn1.writeAsn1Sequence
(Consumer<Asn1Writer> sequenceWriter) Writes an ASN.1 sequence using the providedConsumer
and returns the encoded bytes.