public class DeltaCRLIndicator extends V3Extension
DeltaCRLIndicator extension.
The DeltaCRLIndicator extension is a critical
standard X509v2 CRL extension.
Each extension is associated with a specific certificateExtension
object identifier, derived from:
certificateExtension OBJECT IDENTIFIER ::=
{joint-iso-ccitt(2) ds(5) 29}
id-ce OBJECT IDENTIFIER ::= certificateExtension
The object identifier for the DeltaCRLIndicator extension
is defined as:
id-ce-DeltaCRLIndicator OBJECT IDENTIFIER ::= { id-ce 27 }
which corresponds to the OID string "2.5.29.27".
The X.509 Certificate and CRL profile presented in RFC 3280 specifies the DeltaCRLIndicator extension for identifying delta CRLs. The value of BaseCRLNumber identifies the CRL number of the base CRL that was used as the starting point in the generation of this delta CRL. The delta-CRL contains the changes between the base CRL and the current CRL issued along with the delta-CRL.
ASN.1 definition:
deltaCRLIndicator ::= BaseCRLNumberBaseCRLNumber ::= CRLNumber
For adding a DeltaCRLIndicator extension object to a X509v2 certificate revocation
list, use the addExtension method of the iaik.x509.X509CRL class:
DeltaCRLIndicator dci = new DeltaCRLIndicator(BigInteger.valueOf(4234234)); X505CRL crl = new X509CRL(); ... crl.addExtension(dci);
V3Extension,
X509Extensions,
X509CRL| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier of this DeltaCRLIndicator extension.
|
critical| Constructor and Description |
|---|
DeltaCRLIndicator()
Default constructor.
|
DeltaCRLIndicator(java.math.BigInteger baseCRLNumber)
Creates a new
DeltaCRLIndicator from a BigInteger base crl number. |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getBaseCRLNumber()
Returns the base crl number as BigInteger.
|
ObjectID |
getObjectID()
Returns the object ID of this
DeltaCRLIndicator extension. |
int |
hashCode()
Returns a hashcode for this identity.
|
void |
init(ASN1Object obj)
Inits this
DeltaCRLIndicator implementation with an ASN1object
representing the value of this extension. |
void |
setBaseCRLNumber(java.math.BigInteger baseCRLNumber)
Sets the base crl number.
|
ASN1Object |
toASN1Object()
Returns an ASN1Object representing the value of this
DeltaCRLIndicator
extension object. |
java.lang.String |
toString()
Returns a string that represents the contents of this
DeltaCRLIndicator
extension. |
getName, isCritical, setCriticalpublic static final ObjectID oid
public DeltaCRLIndicator()
baseCRLNumber value to 0.
Use the setBaseCRLNumber method for explicitly
setting the base crl number.public DeltaCRLIndicator(java.math.BigInteger baseCRLNumber)
DeltaCRLIndicator from a BigInteger base crl number.
For instance:
DeltaCRLIndicator dci = new DeltaCRLIndicator(BigInteger.valueOf(4234234));
baseCRLNumber - the base crl numberpublic ObjectID getObjectID()
DeltaCRLIndicator extension.getObjectID in class V3Extensionpublic void init(ASN1Object obj)
DeltaCRLIndicator implementation with an ASN1object
representing the value of this extension.
The given ASN1Object represents the BigInteger base crl number value.
The given ASN1Object is the one created by toASN1Object().
This method is used by the X509Extensions class when parsing the ASN.1 representation
of a CRL for properly initializing an included
DeltaCRLIndicator extension. This method initializes the
extension only with its value, but not with its critical
specification. For that reason, this method shall not be
explicitly called by an application.
init in class V3Extensionobj - the DeltaCRLIndicator as ASN1Objectpublic ASN1Object toASN1Object()
DeltaCRLIndicator
extension object.
The returned ASN1Object is an ASN.1 INTEGER representing the BigInteger base crl number value.
deltaCRLIndicator ::= BaseCRLNumber
BaseCRLNumber ::= CRLNumber
toASN1Object in class V3ExtensionDeltaCRLIndicator as ASN1Objectpublic java.math.BigInteger getBaseCRLNumber()
public void setBaseCRLNumber(java.math.BigInteger baseCRLNumber)
baseCRLNumber - the base crl numberpublic int hashCode()
hashCode in class V3Extensionpublic java.lang.String toString()
DeltaCRLIndicator
extension.toString in class java.lang.Object