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 Asn1WriterAsn1.getWriter()Returns an ASN.1 writer with an initial capacity of 32 bytes.static Asn1WriterAsn1.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 providedbitSetas 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 providedbitSetas 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 providedBigIntegerusing 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 providedBigIntegervalue 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.writeSequence(byte type, int estimatedLength) Writes a sequence element using the provided type tag and estimated length of the sequence.Asn1Writer.writeSequence(int estimatedLength) Writes a sequence element using the Universal Sequence ASN.1 type tag and estimated length of the sequence.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.writeSet(byte type, int estimatedLength) Writes a set element using the provided type tag and estimated length of the set.Asn1Writer.writeSet(int estimatedLength) Writes a set element using the Universal Set ASN.1 type tag and estimated length of the set.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 LdapWriterLdap.getWriter(Asn1Writer asn1Writer, int ldapVersion) Creates a new LDAP writer which will write LDAP messages to the provided ASN.1 writer.static voidLdap.writeAttribute(Asn1Writer writer, Attribute attribute) Writes anAttributeto the providedAsn1Writer.static voidLdap.writeEntry(Asn1Writer writer, Entry entry) Writes anEntryto the providedAsn1Writer.static voidLdap.writeFilter(Asn1Writer writer, Filter filter) Writes aFilterto the providedAsn1Writer.static voidLdap.writeModification(Asn1Writer writer, Modification modification) Writes anModificationto the providedAsn1Writer.Method parameters in org.forgerock.opendj.io with type arguments of type Asn1WriterModifier and TypeMethodDescriptionstatic ByteStringAsn1.writeAsn1Sequence(Consumer<Asn1Writer> sequenceWriter) Writes an ASN.1 sequence using the providedConsumerand returns the encoded bytes.