|
|||||||||
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.CertificateVersion
This class defines the version of the X509 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 int |
V1
X509Certificate Version 1 |
static int |
V2
X509Certificate Version 2 |
static int |
V3
X509Certificate Version 3 |
static String |
VERSION
|
Constructor Summary | |
CertificateVersion()
The default constructor for this class, sets the version to 0 (i.e. |
|
CertificateVersion(DerInputStream in)
Create the object, decoding the values from the passed DER stream. |
|
CertificateVersion(DerValue val)
Create the object, decoding the values from the passed DerValue. |
|
CertificateVersion(InputStream in)
Create the object, decoding the values from the passed stream. |
|
CertificateVersion(int version)
The constructor for this class for the required version. |
Method Summary | |
int |
compare(int vers)
Compare versions. |
void |
decode(InputStream in)
Decode the CertificateVersion period in DER form from the stream. |
void |
delete(String name)
Delete the attribute value. |
void |
encode(OutputStream out)
Encode the CertificateVersion period 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 version number of the certificate. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int V1
public static final int V2
public static final int V3
public static final String IDENT
public static final String NAME
public static final String VERSION
Constructor Detail |
public CertificateVersion()
public CertificateVersion(int version) throws IOException
version
- the version for the certificate.public CertificateVersion(DerInputStream in) throws IOException
in
- the DerInputStream to read the CertificateVersion from.public CertificateVersion(InputStream in) throws IOException
in
- the InputStream to read the CertificateVersion from.public CertificateVersion(DerValue val) throws IOException
val
- the Der encoded value.Method Detail |
public String toString()
public void encode(OutputStream out) throws IOException
out
- the OutputStream to marshal the contents to.public void decode(InputStream in) throws IOException
in
- the InputStream to unmarshal 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()
public int compare(int vers)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |