Save This Page
Home » openjdk-7 » sun.security » x509 » [javadoc | source]
sun.security.x509
public class: CRLNumberExtension [javadoc | source]
java.lang.Object
   sun.security.x509.Extension
      sun.security.x509.CRLNumberExtension

All Implemented Interfaces:
    CertAttrSet, java.security.cert.Extension

Direct Known Subclasses:
    DeltaCRLIndicatorExtension

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.

Field Summary
public static final  String NAME    Attribute name. 
public static final  String NUMBER     
Fields inherited from sun.security.x509.Extension:
extensionId,  critical,  extensionValue
Constructor:
 public CRLNumberExtension(int crlNum) throws IOException 
    Create a CRLNumberExtension with the integer value . The criticality is set to false.
    Parameters:
    crlNum - the value to be set for the extension.
 public CRLNumberExtension(BigInteger crlNum) throws IOException 
    Create a CRLNumberExtension with the BigInteger value . The criticality is set to false.
    Parameters:
    crlNum - the value to be set for the extension.
 public CRLNumberExtension(Boolean critical,
    Object value) throws IOException 
    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.
    exception: ClassCastException - if value is not an array of bytes
    exception: IOException - on error.
 protected CRLNumberExtension(ObjectIdentifier extensionId,
    boolean isCritical,
    BigInteger crlNum,
    String extensionName,
    String extensionLabel) throws IOException 
    Creates the extension (also called by the subclass).
 protected CRLNumberExtension(ObjectIdentifier extensionId,
    Boolean critical,
    Object value,
    String extensionName,
    String extensionLabel) throws IOException 
    Creates the extension (also called by the subclass).
Method from sun.security.x509.CRLNumberExtension Summary:
delete,   encode,   encode,   get,   getElements,   getName,   set,   toString
Methods from sun.security.x509.Extension:
encode,   encode,   equals,   getExtensionId,   getExtensionValue,   getId,   getValue,   hashCode,   isCritical,   newExtension,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.security.x509.CRLNumberExtension Detail:
 public  void delete(String name) throws IOException 
    Delete the attribute value.
 public  void encode(OutputStream out) throws IOException 
    Write the extension to the DerOutputStream.
 protected  void encode(OutputStream out,
    ObjectIdentifier extensionId,
    boolean isCritical) throws IOException 
    Write the extension to the DerOutputStream. (Also called by the subclass)
 public Object get(String name) throws IOException 
    Get the attribute value.
 public Enumeration getElements() 
    Return an enumeration of names of attributes existing within this attribute.
 public String getName() 
    Return the name of this attribute.
 public  void set(String name,
    Object obj) throws IOException 
    Set the attribute value.
 public String toString() 
    Returns a printable representation of the CRLNumberExtension.