Package org.bouncycastle.asn1.x509
Class X509ExtensionsGenerator
java.lang.Object
org.bouncycastle.asn1.x509.X509ExtensionsGenerator
Deprecated.
use org.bouncycastle.asn1.x509.ExtensionsGenerator
Generator for X.509 extensions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.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.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
-
Constructor Details
-
X509ExtensionsGenerator
public X509ExtensionsGenerator()Deprecated.
-
-
Method Details
-
reset
public void reset()Deprecated.Reset the generator -
addExtension
Deprecated.Add an extension with the given oid and the passed in value to be included in the OCTET STRING associated with the extension.- Parameters:
oid
- OID for the extension.critical
- true if critical, false otherwise.value
- the ASN.1 object to be included in the extension.
-
addExtension
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.- Parameters:
oid
- OID for the extension.critical
- true if critical, false otherwise.value
- the byte array to be wrapped.
-
isEmpty
public boolean isEmpty()Deprecated.Return true if there are no extension present in this generator.- Returns:
- true if empty, false otherwise
-
generate
Deprecated.Generate an X509Extensions object based on the current state of the generator.- Returns:
- an X09Extensions object.
-