iaik.x509.extensions
Class DeltaCRLIndicator

java.lang.Object
  |
  +--iaik.x509.V3Extension
        |
        +--iaik.x509.extensions.DeltaCRLIndicator

public class DeltaCRLIndicator
extends V3Extension

This class implements the 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 2459 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 ::= BaseCRLNumber
 

BaseCRLNumber ::= 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);
 

Version:
File Revision 8
See Also:
V3Extension, X509Extensions, X509CRL

Field Summary
static ObjectID oid
          The object identifier of this DeltaCRLIndicator extension.
 
Fields inherited from class iaik.x509.V3Extension
critical
 
Constructor Summary
DeltaCRLIndicator()
          Default constructor.
DeltaCRLIndicator(BigInteger baseCRLNumber)
          Creates a new DeltaCRLIndicator from a BigInteger base crl number.
 
Method Summary
 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(BigInteger baseCRLNumber)
          Sets the base crl number.
 ASN1Object toASN1Object()
          Returns an ASN1Object representing the value of this DeltaCRLIndicator extension object.
 String toString()
          Returns a string that represents the contents of this DeltaCRLIndicator extension.
 
Methods inherited from class iaik.x509.V3Extension
getName, isCritical, setCritical
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

oid

public static final ObjectID oid
The object identifier of this DeltaCRLIndicator extension. The corresponding OID string is "2.5.29.27".
Constructor Detail

DeltaCRLIndicator

public DeltaCRLIndicator()
Default constructor. Creates an empty DeltaCRLIndicator object. Use the setBaseCRLNumber method for explicitly setting the base crl number.

DeltaCRLIndicator

public DeltaCRLIndicator(BigInteger baseCRLNumber)
Creates a new DeltaCRLIndicator from a BigInteger base crl number.

For instance:

 DeltaCRLIndicator dci = new DeltaCRLIndicator(BigInteger.valueOf(4234234));
 

Parameters:
baseCRLNumber - the base crl number
Method Detail

getObjectID

public ObjectID getObjectID()
Returns the object ID of this DeltaCRLIndicator extension.
Overrides:
getObjectID in class V3Extension
Returns:
the object ID

init

public void init(ASN1Object obj)
Inits this 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.

Overrides:
init in class V3Extension
Parameters:
obj - the DeltaCRLIndicator as ASN1Object

toASN1Object

public ASN1Object toASN1Object()
Returns an ASN1Object representing the value of this DeltaCRLIndicator extension object.

The returned ASN1Object is an ASN.1 INTEGER representing the BigInteger base crl number value.

deltaCRLIndicator ::= BaseCRLNumber

BaseCRLNumber ::= CRLNumber

Overrides:
toASN1Object in class V3Extension
Returns:
the value of this DeltaCRLIndicator as ASN1Object

getBaseCRLNumber

public BigInteger getBaseCRLNumber()
Returns the base crl number as BigInteger.
Returns:
the base crl number

setBaseCRLNumber

public void setBaseCRLNumber(BigInteger baseCRLNumber)
Sets the base crl number.
Parameters:
baseCRLNumber - the base crl number

hashCode

public int hashCode()
Returns a hashcode for this identity.
Overrides:
hashCode in class V3Extension
Returns:
a hash code for this identity

toString

public String toString()
Returns a string that represents the contents of this DeltaCRLIndicator extension.
Overrides:
toString in class Object
Returns:
the string representation

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK