APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.x509

public Class CRLNumberExtension

extends Extension
Class Inheritance
Known Direct Subclasses
sun.security.x509.DeltaCRLIndicatorExtension
Imports
java.io.IOException, java.math.BigInteger, sun.security.util.*

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.

Author
Hemma Prafullchandra
See Also
Extension

Field Summary

Modifier and TypeField and Description
private BigInteger
private final String
private final String
private static final String
public static final String
Inherited from sun.security.x509.Extension:
criticalextensionIdextensionValue

Constructor Summary

AccessConstructor and Description
public
CRLNumberExtension(int
the value to be set for the extension.
crlNum
)

Create a CRLNumberExtension with the integer value .

public
CRLNumberExtension(BigInteger
the value to be set for the extension, cannot be null
crlNum
)

Create a CRLNumberExtension with the BigInteger value .

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

Creates the extension (also called by the subclass).

public
CRLNumberExtension(Boolean
true if the extension is to be treated as critical.
critical
,
Object
an array of DER encoded bytes of the actual value.
value
)

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

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

Creates the extension (also called by the subclass).

Method Summary

Modifier and TypeMethod and Description
public void
encode(DerOutputStream
the DerOutputStream to write the extension to.
out
)

Overrides sun.security.x509.Extension.encode.

Implements sun.security.util.DerEncoder.encode.

Write the extension to the DerOutputStream.

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

Write the extension to the DerOutputStream.

private void
public BigInteger
getCrlNumber()

Get the crlNumber value.

public String
getName()

Overrides sun.security.x509.Extension.getName.

Return the name of this extension.

public String
toString()

Overrides sun.security.x509.Extension.toString.

Returns a printable representation of the CRLNumberExtension.

Inherited from sun.security.x509.Extension:
encodeequalsgetExtensionIdgetExtensionValuegetIdgetValuehashCodeisCriticalnewExtension

Field Detail

crlNumberback to summary
private BigInteger crlNumber
extensionLabelback to summary
private final String extensionLabel
extensionNameback to summary
private final String extensionName
LABELback to summary
private static final String LABEL
NAMEback to summary
public static final String NAME

Constructor Detail

CRLNumberExtensionback to summary
public CRLNumberExtension(int crlNum)

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

Parameters
crlNum:int

the value to be set for the extension.

CRLNumberExtensionback to summary
public CRLNumberExtension(BigInteger crlNum)

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

Parameters
crlNum:BigInteger

the value to be set for the extension, cannot be null

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

Creates the extension (also called by the subclass).

CRLNumberExtensionback to summary
public CRLNumberExtension(Boolean critical, Object value) throws IOException

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

Parameters
critical:Boolean

true if the extension is to be treated as critical.

value:Object

an array of DER encoded bytes of the actual value.

Exceptions
IOException:
on error.
ClassCastException:
if value is not an array of bytes
CRLNumberExtensionback to summary
protected CRLNumberExtension(ObjectIdentifier extensionId, Boolean critical, Object value, String extensionName, String extensionLabel) throws IOException

Creates the extension (also called by the subclass).

Method Detail

encodeback to summary
public void encode(DerOutputStream out)

Overrides sun.security.x509.Extension.encode.

Implements sun.security.util.DerEncoder.encode.

Write the extension to the DerOutputStream.

Parameters
out:DerOutputStream

the DerOutputStream to write the extension to.

Annotations
@Override
encodeback to summary
protected void encode(DerOutputStream out, ObjectIdentifier extensionId, boolean isCritical)

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

encodeThisback to summary
private void encodeThis()
getCrlNumberback to summary
public BigInteger getCrlNumber()

Get the crlNumber value.

getNameback to summary
public String getName()

Overrides sun.security.x509.Extension.getName.

Return the name of this extension.

Annotations
@Override
toStringback to summary
public String toString()

Overrides sun.security.x509.Extension.toString.

Returns a printable representation of the CRLNumberExtension.