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.
-
SerialNumber(BigInteger)
- The default constructor for this class using BigInteger.
-
SerialNumber(DerInputStream)
- Create the object, decoding the values from the passed DER stream.
-
SerialNumber(DerValue)
- Create the object, decoding the values from the passed DerValue.
-
SerialNumber(InputStream)
- Create the object, decoding the values from the passed stream.
-
SerialNumber(int)
- The default constructor for this class using int.
-
encode(DerOutputStream)
- Encode the SerialNumber in DER form to the stream.
-
getNumber()
- Return the serial number.
-
toString()
- Return the SerialNumber as user readable string.
SerialNumber
public SerialNumber(BigInteger num)
- The default constructor for this class using BigInteger.
- Parameters:
- num - the BigInteger number used to create the serial number.
SerialNumber
public SerialNumber(int num)
- The default constructor for this class using int.
- Parameters:
- num - the BigInteger number used to create the serial number.
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.
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.
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.
toString
public String toString()
- Return the SerialNumber as user readable string.
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.
getNumber
public BigInt getNumber()
- Return the serial number.
All Packages Class Hierarchy This Package Previous Next Index