DerEncoder
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final int | V1
X509Certificate Version 1 |
| public static final int | V2
X509Certificate Version 2 |
| public static final int | V3
X509Certificate Version 3 |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | CertificateVersion()
The default constructor for this class, sets the version to 0 (i.e. X.509 version 1). |
| public | CertificateVersion(int
the version for the certificate. version)The constructor for this class for the required version. |
| public | CertificateVersion(DerInputStream
the DerInputStream to read the CertificateVersion from. in)Create the object, decoding the values from the passed DER stream. |
| public | CertificateVersion(InputStream
the InputStream to read the CertificateVersion from. in)Create the object, decoding the values from the passed stream. |
| public | CertificateVersion(DerValue
the Der encoded value. val)Create the object, decoding the values from the passed DerValue. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| private void | |
| public void | encode(DerOutputStream
the DerOutputStream to marshal the contents to. out)Implements sun. Encode the CertificateVersion period in DER form to the stream. |
| public int | |
| public String |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| V1 | back to summary |
|---|---|
| public static final int V1 X509Certificate Version 1 | |
| V2 | back to summary |
|---|---|
| public static final int V2 X509Certificate Version 2 | |
| V3 | back to summary |
|---|---|
| public static final int V3 X509Certificate Version 3 | |
| version | back to summary |
|---|---|
| pack-priv int version | |
| CertificateVersion | back to summary |
|---|---|
| public CertificateVersion() The default constructor for this class, sets the version to 0 (i.e. X.509 version 1). | |
| CertificateVersion | back to summary |
|---|---|
| public CertificateVersion(int version) throws IOException The constructor for this class for the required version.
| |
| CertificateVersion | back to summary |
|---|---|
| public CertificateVersion(DerInputStream in) throws IOException Create the object, decoding the values from the passed DER stream.
| |
| CertificateVersion | back to summary |
|---|---|
| public CertificateVersion(InputStream in) throws IOException Create the object, decoding the values from the passed stream.
| |
| CertificateVersion | back to summary |
|---|---|
| public CertificateVersion(DerValue val) throws IOException Create the object, decoding the values from the passed DerValue.
| |
| compare | back to summary |
|---|---|
| public int compare(int vers) Compare versions. | |
| construct | back to summary |
|---|---|
| private void construct(DerValue derVal) throws IOException | |
| encode | back to summary |
|---|---|
| public void encode(DerOutputStream out) Implements sun. Encode the CertificateVersion period in DER form to the stream.
| |
| getVersion | back to summary |
|---|---|
| public int getVersion() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return the version number of the certificate. | |