Class SerialNumber
java.lang.Object
org.mozilla.jss.netscape.security.x509.SerialNumber
- All Implemented Interfaces:
Serializable
This class defines the SerialNumber class used by certificates.
- Version:
- 1.5
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSerialNumber
(int num) The default constructor for this class using int.Create the object, decoding the values from the passed stream.SerialNumber
(BigInteger num) The default constructor for this class using BigInteger.SerialNumber
(BigInt num) Create the object, decoding the values from the passed DER stream.SerialNumber
(DerValue val) Create the object, decoding the values from the passed DerValue. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
serialNum
-
-
Constructor Details
-
SerialNumber
The default constructor for this class using BigInteger.- Parameters:
num
- the BigInteger number used to create the serial number.
-
SerialNumber
-
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
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
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
Create the object, decoding the values from the passed stream.- Parameters:
in
- the InputStream to read the SerialNumber from.- Throws:
IOException
- on decoding errors.
-
-
Method Details
-
construct
- Throws:
IOException
-
toString
Return the SerialNumber as user readable string. -
encode
Encode the SerialNumber in DER form to the stream.- Parameters:
out
- the DerOutputStream to marshal the contents to.- Throws:
IOException
- on errors.
-
getNumber
Return the serial number.
-