|
Bouncy Castle Cryptography Library 1.47 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.asn1.x509.ExtensionsGenerator
public class ExtensionsGenerator
Generator for X.509 extensions
Constructor Summary | |
---|---|
ExtensionsGenerator()
|
Method Summary | |
---|---|
void |
addExtension(ASN1ObjectIdentifier oid,
boolean critical,
ASN1Encodable value)
Add an extension with the given oid and the passed in value to be included in the OCTET STRING associated with the extension. |
void |
addExtension(ASN1ObjectIdentifier oid,
boolean critical,
byte[] value)
Add an extension with the given oid and the passed in byte array to be wrapped in the OCTET STRING associated with the extension. |
Extensions |
generate()
Generate an Extensions object based on the current state of the generator. |
boolean |
isEmpty()
Return true if there are no extension present in this generator. |
void |
reset()
Reset the generator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtensionsGenerator()
Method Detail |
---|
public void reset()
public void addExtension(ASN1ObjectIdentifier oid, boolean critical, ASN1Encodable value) throws java.io.IOException
oid
- OID for the extension.critical
- true if critical, false otherwise.value
- the ASN.1 object to be included in the extension.
java.io.IOException
public void addExtension(ASN1ObjectIdentifier oid, boolean critical, byte[] value)
oid
- OID for the extension.critical
- true if critical, false otherwise.value
- the byte array to be wrapped.public boolean isEmpty()
public Extensions generate()
|
Bouncy Castle Cryptography Library 1.47 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |