|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.asn1.ASN1Generator
org.bouncycastle.asn1.DERGenerator
org.bouncycastle.asn1.DERSequenceGenerator
A stream generator for DER SEQUENCEs
| Field Summary |
| Fields inherited from class org.bouncycastle.asn1.ASN1Generator |
_out |
| Constructor Summary | |
DERSequenceGenerator(java.io.OutputStream out)
Use the passed in stream as the target for the generator. |
|
DERSequenceGenerator(java.io.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 | |
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 SEQUENCE. |
java.io.OutputStream |
getRawOutputStream()
Return the target stream for the SEQUENCE. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DERSequenceGenerator(java.io.OutputStream out)
throws java.io.IOException
out - target stream
java.io.IOException - if the target stream cannot be written to.
public DERSequenceGenerator(java.io.OutputStream out,
int tagNo,
boolean isExplicit)
throws java.io.IOException
out - target streamtagNo - the tag number to introduceisExplicit - true if this is an explicitly tagged object, false otherwise.
java.io.IOException - if the target stream cannot be written to.| Method Detail |
public void addObject(ASN1Encodable object)
throws java.io.IOException
object - an ASN.1 encodable object to add.
java.io.IOException - if the target stream cannot be written to or the object cannot be encoded.
public void addObject(ASN1Primitive primitive)
throws java.io.IOException
primitive - an ASN.1 primitive to add.
java.io.IOException - if the target stream cannot be written to or the primitive cannot be encoded.public java.io.OutputStream getRawOutputStream()
getRawOutputStream in class ASN1Generator
public void close()
throws java.io.IOException
java.io.IOException - if the target stream cannot be written.
|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||