Package io.anyline.nfc.bouncycastle.asn1
Class BERSequenceGenerator
-
- All Implemented Interfaces:
public class BERSequenceGenerator extends BERGenerator
A stream generator for DER SEQUENCEs
-
-
Constructor Summary
Constructors Constructor Description BERSequenceGenerator(OutputStream out)
Use the passed in stream as the target for the generator, writing out the header tag for a constructed SEQUENCE. BERSequenceGenerator(OutputStream out, int tagNo, boolean isExplicit)
Use the passed in stream as the target for the generator, writing out the header tag for a tagged constructed SEQUENCE (possibly implicit).
-
Method Summary
Modifier and Type Method Description void
addObject(ASN1Encodable object)
Add an object to the SEQUENCE being generated. void
addObject(ASN1Primitive primitive)
Add an ASN1.1 primitive to the SEQUENCE being generated. void
close()
Close of the generator, writing out the BER end tag. -
-
Constructor Detail
-
BERSequenceGenerator
BERSequenceGenerator(OutputStream out)
Use the passed in stream as the target for the generator, writing out the header tag for a constructed SEQUENCE.- Parameters:
out
- target stream
-
BERSequenceGenerator
BERSequenceGenerator(OutputStream out, int tagNo, boolean isExplicit)
Use the passed in stream as the target for the generator, writing out the header tag for a tagged constructed SEQUENCE (possibly implicit).- Parameters:
out
- target streamtagNo
- the tag number to introduceisExplicit
- true if this is an explicitly tagged object, false otherwise.
-
-
Method Detail
-
addObject
void addObject(ASN1Encodable object)
Add an object to the SEQUENCE being generated.
- Parameters:
object
- an ASN.1 encodable object to add.
-
addObject
void addObject(ASN1Primitive primitive)
Add an ASN1.1 primitive to the SEQUENCE being generated.
- Parameters:
primitive
- an ASN.1 primitive to add.
-
close
void close()
Close of the generator, writing out the BER end tag.
-
-
-
-