All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.security.x509.SerialNumber

netscape.security.x509.SerialNumber

public class SerialNumber
This class defines the SerialNumber class used by certificates.


Constructor Index

 o SerialNumber(BigInteger)
The default constructor for this class using BigInteger.
 o SerialNumber(DerInputStream)
Create the object, decoding the values from the passed DER stream.
 o SerialNumber(DerValue)
Create the object, decoding the values from the passed DerValue.
 o SerialNumber(InputStream)
Create the object, decoding the values from the passed stream.
 o SerialNumber(int)
The default constructor for this class using int.

Method Index

 o encode(DerOutputStream)
Encode the SerialNumber in DER form to the stream.
 o getNumber()
Return the serial number.
 o toString()
Return the SerialNumber as user readable string.

Constructors

 o SerialNumber
 public SerialNumber(BigInteger num)
The default constructor for this class using BigInteger.

Parameters:
num - the BigInteger number used to create the serial number.
 o SerialNumber
 public SerialNumber(int num)
The default constructor for this class using int.

Parameters:
num - the BigInteger number used to create the serial number.
 o SerialNumber
 public SerialNumber(DerInputStream in) throws IOException
Create the object, decoding the values from the passed DER stream.

Parameters:
in - the DerInputStream to read the SerialNumber from.
Throws: IOException
on decoding errors.
 o SerialNumber
 public SerialNumber(DerValue val) throws IOException
Create the object, decoding the values from the passed DerValue.

Parameters:
val - the DerValue to read the SerialNumber from.
Throws: IOException
on decoding errors.
 o SerialNumber
 public SerialNumber(InputStream in) throws IOException
Create the object, decoding the values from the passed stream.

Parameters:
in - the InputStream to read the SerialNumber from.
Throws: IOException
on decoding errors.

Methods

 o toString
 public String toString()
Return the SerialNumber as user readable string.

 o encode
 public void encode(DerOutputStream out) throws IOException
Encode the SerialNumber in DER form to the stream.

Parameters:
out - the DerOutputStream to marshal the contents to.
Throws: IOException
on errors.
 o getNumber
 public BigInt getNumber()
Return the serial number.


All Packages  Class Hierarchy  This Package  Previous  Next  Index