| java.lang.Object | |
| ↳ | sun.security.x509.CertificateVersion |
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | IDENT | Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type. | |||||||||
| String | NAME | Sub attributes name for this CertAttrSet. | |||||||||
| int | V1 | X509Certificate Version 1 | |||||||||
| int | V2 | X509Certificate Version 2 | |||||||||
| int | V3 | X509Certificate Version 3 | |||||||||
| String | VERSION | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
The default constructor for this class,
sets the version to 0 (i.e.
| |||||||||||
The constructor for this class for the required version.
| |||||||||||
Create the object, decoding the values from the passed DER stream.
| |||||||||||
Create the object, decoding the values from the passed stream.
| |||||||||||
Create the object, decoding the values from the passed DerValue.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Compare versions.
| |||||||||||
Delete the attribute value.
| |||||||||||
Encode the CertificateVersion period in DER form to the stream.
| |||||||||||
Get the attribute value.
| |||||||||||
Return an enumeration of names of attributes existing within this
attribute.
| |||||||||||
Return the name of this attribute.
| |||||||||||
Set the attribute value.
| |||||||||||
Return the version number of the certificate.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
sun.security.x509.CertAttrSet
| |||||||||||
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.
X509Certificate Version 1
X509Certificate Version 2
X509Certificate Version 3
The default constructor for this class, sets the version to 0 (i.e. X.509 version 1).
The constructor for this class for the required version.
| version | the version for the certificate. |
|---|
| IOException | if the version is not valid. |
|---|
Create the object, decoding the values from the passed DER stream.
| in | the DerInputStream to read the CertificateVersion from. |
|---|
| IOException | on decoding errors. |
|---|
Create the object, decoding the values from the passed stream.
| in | the InputStream to read the CertificateVersion from. |
|---|
| IOException | on decoding errors. |
|---|
Create the object, decoding the values from the passed DerValue.
| val | the Der encoded value. |
|---|
| IOException | on decoding errors. |
|---|
Compare versions.
Encode the CertificateVersion period in DER form to the stream.
| out | the OutputStream to marshal the contents to. |
|---|
| IOException | on errors. |
|---|
Return an enumeration of names of attributes existing within this attribute.
Set the attribute value.
| name | the name of the attribute (e.g. "x509.info.key") |
|---|---|
| obj | the attribute object. |
| IOException |
|---|
Return the version number of the certificate.