All Packages Class Hierarchy This Package Previous Next Index
Class netscape.security.x509.CertificateSerialNumber
netscape.security.x509.CertificateSerialNumber
- public class CertificateSerialNumber
- implements CertAttrSet
This class defines the SerialNumber attribute for the Certificate.
- See Also:
- CertAttrSet
-
IDENT
- Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
-
NAME
- Sub attributes name for this CertAttrSet.
-
NUMBER
-
-
CertificateSerialNumber(BigInteger)
- Default constructor for the certificate attribute.
-
CertificateSerialNumber(DerInputStream)
- Create the object, decoding the values from the passed DER stream.
-
CertificateSerialNumber(DerValue)
- Create the object, decoding the values from the passed DerValue.
-
CertificateSerialNumber(InputStream)
- Create the object, decoding the values from the passed stream.
-
CertificateSerialNumber(int)
- Default constructor for the certificate attribute.
-
decode(InputStream)
- Decode the serial number in DER form from the stream.
-
delete(String)
- Delete the attribute value.
-
encode(OutputStream)
- Encode the serial number in DER form to the stream.
-
get(String)
- Get the attribute value.
-
getElements()
- Return an enumeration of names of attributes existing within this
attribute.
-
getName()
- Return the name of this attribute.
-
set(String, Object)
- Set the attribute value.
-
toString()
- Return the serial number as user readable string.
IDENT
public static final String IDENT
- Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
NAME
public static final String NAME
- Sub attributes name for this CertAttrSet.
NUMBER
public static final String NUMBER
CertificateSerialNumber
public CertificateSerialNumber(BigInteger num)
- Default constructor for the certificate attribute.
- Parameters:
- serial - the serial number for the certificate.
CertificateSerialNumber
public CertificateSerialNumber(int num)
- Default constructor for the certificate attribute.
- Parameters:
- serial - the serial number for the certificate.
CertificateSerialNumber
public CertificateSerialNumber(DerInputStream in) throws IOException
- Create the object, decoding the values from the passed DER stream.
- Parameters:
- in - the DerInputStream to read the serial number from.
- Throws: IOException
- on decoding errors.
CertificateSerialNumber
public CertificateSerialNumber(InputStream in) throws IOException
- Create the object, decoding the values from the passed stream.
- Parameters:
- in - the InputStream to read the serial number from.
- Throws: IOException
- on decoding errors.
CertificateSerialNumber
public CertificateSerialNumber(DerValue val) throws IOException
- Create the object, decoding the values from the passed DerValue.
- Parameters:
- val - the DER encoded value.
- Throws: IOException
- on decoding errors.
toString
public String toString()
- Return the serial number as user readable string.
encode
public void encode(OutputStream out) throws IOException
- Encode the serial number in DER form to the stream.
- Parameters:
- out - the DerOutputStream to marshal the contents to.
- Throws: IOException
- on errors.
decode
public void decode(InputStream in) throws IOException
- Decode the serial number in DER form from the stream.
- Parameters:
- in - the InputStream to marshal the contents from.
- Throws: IOException
- on errors.
set
public void set(String name,
Object obj) throws IOException
- Set the attribute value.
get
public Object get(String name) throws IOException
- Get the attribute value.
delete
public void delete(String name) throws IOException
- Delete the attribute value.
getElements
public Enumeration getElements()
- Return an enumeration of names of attributes existing within this
attribute.
getName
public String getName()
- Return the name of this attribute.
All Packages Class Hierarchy This Package Previous Next Index