public class AttributeCertificateExtensions extends X509Extensions
X509Extensions
for
registering and handling Attribute certificate extensions.
This class can be used in the same way as the parent X509Extensions
class for managing extensions that may be included
in OCSP requests or responses. An application wishing to implement some
private Attribute certificate extension may write a class by extending the abstract
class V3Extension
and statically registering
the implementation by its object id, e.g.:
MyPrivateExtension extends V3Extension { ... public static final ObjectID oid = ...; } AttributeCertificateExtensions.register(MyPrivateExtension.oid, MyPrivateExtension.class);Per default all extensions specified by the X.509 Attribute Certificate profile (RFC 5755) are implementend and registered by this class:
V3Extension
,
X509Extensions
critical_extensions, noncritical_extensions
Constructor and Description |
---|
AttributeCertificateExtensions()
Default Constructor.
|
AttributeCertificateExtensions(ASN1Object extensions)
Creates a new AttributeCertificateExtensions object from an ASN1Object.
|
AttributeCertificateExtensions(int initialCriticalExtensionsCapacity,
int initialNoncriticalExtensionCapacity)
Creates an AttributeCertificateExtensions object with the given initial capacities for the
and
hashtables. |
addExtension, countExtensions, create, createExtensionsTable, decode, getCriticalExtensionOIDs, getExtension, getExtensionValue, getNonCriticalExtensionOIDs, getRawExtensionValue, hasExtensions, hasUnsupportedCriticalExtension, listExtensions, parseExtensions, register, removeAllExtensions, removeExtension, toASN1Object, toString
public AttributeCertificateExtensions()
AttributeCertificateExtensions
object to be supplied
with V3Extensions.public AttributeCertificateExtensions(int initialCriticalExtensionsCapacity, int initialNoncriticalExtensionCapacity)
critical_extensions
and
noncritical_extensions
hashtables.initialCriticalExtensionsCapacity
- the initial capacity of the
critical_extensions
tableinitialNoncriticalExtensionCapacity
- the initial capacity of the
noncritical_extensions
tablepublic AttributeCertificateExtensions(ASN1Object extensions) throws X509ExtensionException
The given ASN1Object has the ASN.1 type "SEQUENCE of Extensions".
extensions
- the extensions as ASN1ObjectX509ExtensionException
- if the extensions cannot be parsed