public class X509ExtensionsGenerator
extends java.lang.Object
Constructor and Description |
---|
X509ExtensionsGenerator()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addExtension(ASN1ObjectIdentifier oid,
boolean critical,
ASN1Encodable value)
Deprecated.
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)
Deprecated.
Add an extension with the given oid and the passed in byte array to be wrapped in the
OCTET STRING associated with the extension.
|
X509Extensions |
generate()
Deprecated.
Generate an X509Extensions object based on the current state of the generator.
|
boolean |
isEmpty()
Deprecated.
Return true if there are no extension present in this generator.
|
void |
reset()
Deprecated.
Reset the generator
|
public void reset()
public void addExtension(ASN1ObjectIdentifier oid, boolean critical, ASN1Encodable value)
oid
- OID for the extension.critical
- true if critical, false otherwise.value
- the ASN.1 object to be included in the extension.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 X509Extensions generate()