public class

CRLNumberExtension

extends Extension
implements CertAttrSet<T>
java.lang.Object
   ↳ sun.security.x509.Extension
     ↳ sun.security.x509.CRLNumberExtension
Known Direct Subclasses

Class Overview

Represent the CRL Number Extension.

This extension, if present, conveys a monotonically increasing sequence number for each CRL issued by a given CA through a specific CA X.500 Directory entry or CRL distribution point. This extension allows users to easily determine when a particular CRL supersedes another CRL.

Summary

Constants
String NAME Attribute name.
String NUMBER
[Expand]
Inherited Fields
From class sun.security.x509.Extension
Public Constructors
CRLNumberExtension(int crlNum)
Create a CRLNumberExtension with the integer value .
CRLNumberExtension(BigInteger crlNum)
Create a CRLNumberExtension with the BigInteger value .
CRLNumberExtension(Boolean critical, Object value)
Create the extension from the passed DER encoded value of the same.
Protected Constructors
CRLNumberExtension(ObjectIdentifier extensionId, boolean isCritical, BigInteger crlNum, String extensionName, String extensionLabel)
Creates the extension (also called by the subclass).
CRLNumberExtension(ObjectIdentifier extensionId, Boolean critical, Object value, String extensionName, String extensionLabel)
Creates the extension (also called by the subclass).
Public Methods
void delete(String name)
Delete the attribute value.
void encode(OutputStream out)
Write the extension to the DerOutputStream.
Object get(String name)
Get the attribute value.
Enumeration<String> getElements()
Return an enumeration of names of attributes existing within this attribute.
String getName()
Return the name of this attribute.
void set(String name, Object obj)
Set the attribute value.
String toString()
Returns a printable representation of the CRLNumberExtension.
Protected Methods
void encode(OutputStream out, ObjectIdentifier extensionId, boolean isCritical)
Write the extension to the DerOutputStream.
[Expand]
Inherited Methods
From class sun.security.x509.Extension
From class java.lang.Object
From interface sun.security.x509.CertAttrSet

Constants

public static final String NAME

Attribute name.

Constant Value: "CRLNumber"

public static final String NUMBER

Constant Value: "value"

Public Constructors

public CRLNumberExtension (int crlNum)

Create a CRLNumberExtension with the integer value . The criticality is set to false.

Parameters
crlNum the value to be set for the extension.
Throws
IOException

public CRLNumberExtension (BigInteger crlNum)

Create a CRLNumberExtension with the BigInteger value . The criticality is set to false.

Parameters
crlNum the value to be set for the extension.
Throws
IOException

public CRLNumberExtension (Boolean critical, Object value)

Create the extension from the passed DER encoded value of the same.

Parameters
critical true if the extension is to be treated as critical.
value an array of DER encoded bytes of the actual value.
Throws
ClassCastException if value is not an array of bytes
IOException on error.

Protected Constructors

protected CRLNumberExtension (ObjectIdentifier extensionId, boolean isCritical, BigInteger crlNum, String extensionName, String extensionLabel)

Creates the extension (also called by the subclass).

Throws
IOException

protected CRLNumberExtension (ObjectIdentifier extensionId, Boolean critical, Object value, String extensionName, String extensionLabel)

Creates the extension (also called by the subclass).

Throws
IOException

Public Methods

public void delete (String name)

Delete the attribute value.

Parameters
name the name of the attribute to delete.
Throws
IOException

public void encode (OutputStream out)

Write the extension to the DerOutputStream.

Parameters
out the DerOutputStream to write the extension to.
Throws
IOException on encoding errors.

public Object get (String name)

Get the attribute value.

Parameters
name the name of the attribute to return.
Throws
IOException

public Enumeration<String> getElements ()

Return an enumeration of names of attributes existing within this attribute.

Returns
  • an enumeration of the attribute names.

public String getName ()

Return the name of this attribute.

Returns
  • the name of this CertAttrSet.

public void set (String name, Object obj)

Set the attribute value.

Parameters
name the name of the attribute (e.g. "x509.info.key")
obj the attribute object.
Throws
IOException

public String toString ()

Returns a printable representation of the CRLNumberExtension.

Returns
  • a string representation of the object.

Protected Methods

protected void encode (OutputStream out, ObjectIdentifier extensionId, boolean isCritical)

Write the extension to the DerOutputStream. (Also called by the subclass)

Throws
IOException