|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security12.sun.security.x509.CertificateSerialNumber
This class defines the SerialNumber attribute for the Certificate.
CertAttrSet
Field Summary | |
static String |
IDENT
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type. |
static String |
NAME
Sub attributes name for this CertAttrSet. |
static String |
NUMBER
|
Constructor Summary | |
CertificateSerialNumber(java.math.BigInteger num)
Default constructor for the certificate attribute. |
|
CertificateSerialNumber(DerInputStream in)
Create the object, decoding the values from the passed DER stream. |
|
CertificateSerialNumber(DerValue val)
Create the object, decoding the values from the passed DerValue. |
|
CertificateSerialNumber(InputStream in)
Create the object, decoding the values from the passed stream. |
|
CertificateSerialNumber(int num)
Default constructor for the certificate attribute. |
Method Summary | |
void |
decode(InputStream in)
Decode the serial number in DER form from the stream. |
void |
delete(String name)
Delete the attribute value. |
void |
encode(OutputStream out)
Encode the serial number in DER form to the stream. |
Object |
get(String name)
Get the attribute value. |
Enumeration |
getElements()
Return an enumeration of names of attributes existing within this attribute. |
String |
getName()
Return the name of this attribute. |
void |
set(String name,
Object obj)
Set the attribute value. |
String |
toString()
Return the serial number as user readable string. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final String IDENT
public static final String NAME
public static final String NUMBER
Constructor Detail |
public CertificateSerialNumber(java.math.BigInteger num)
serial
- the serial number for the certificate.public CertificateSerialNumber(int num)
serial
- the serial number for the certificate.public CertificateSerialNumber(DerInputStream in) throws IOException
in
- the DerInputStream to read the serial number from.public CertificateSerialNumber(InputStream in) throws IOException
in
- the InputStream to read the serial number from.public CertificateSerialNumber(DerValue val) throws IOException
val
- the DER encoded value.Method Detail |
public String toString()
public void encode(OutputStream out) throws IOException
out
- the DerOutputStream to marshal the contents to.public void decode(InputStream in) throws IOException
in
- the InputStream to marshal the contents from.public void set(String name, Object obj) throws IOException
public Object get(String name) throws IOException
public void delete(String name) throws IOException
public Enumeration getElements()
public String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |