public class SerialNumber
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SerialNumber(BigInt num) |
SerialNumber(java.math.BigInteger num)
The default constructor for this class using BigInteger.
|
SerialNumber(DerInputStream in)
Create the object, decoding the values from the passed DER stream.
|
SerialNumber(DerValue val)
Create the object, decoding the values from the passed DerValue.
|
SerialNumber(java.io.InputStream in)
Create the object, decoding the values from the passed stream.
|
SerialNumber(int num)
The default constructor for this class using int.
|
Modifier and Type | Method and Description |
---|---|
void |
encode(DerOutputStream out)
Encode the SerialNumber in DER form to the stream.
|
BigInt |
getNumber()
Return the serial number.
|
java.lang.String |
toString()
Return the SerialNumber as user readable string.
|
public SerialNumber(java.math.BigInteger num)
num
- the BigInteger number used to create the serial number.public SerialNumber(BigInt num)
public SerialNumber(int num)
num
- the BigInteger number used to create the serial number.public SerialNumber(DerInputStream in) throws java.io.IOException
in
- the DerInputStream to read the SerialNumber from.java.io.IOException
- on decoding errors.public SerialNumber(DerValue val) throws java.io.IOException
val
- the DerValue to read the SerialNumber from.java.io.IOException
- on decoding errors.public SerialNumber(java.io.InputStream in) throws java.io.IOException
in
- the InputStream to read the SerialNumber from.java.io.IOException
- on decoding errors.public java.lang.String toString()
toString
in class java.lang.Object
public void encode(DerOutputStream out) throws java.io.IOException
out
- the DerOutputStream to marshal the contents to.java.io.IOException
- on errors.public BigInt getNumber()