| java.lang.Object sun.security.x509.CertificateVersion
CertificateVersion | public class CertificateVersion implements CertAttrSet(Code) | | This class defines the version of the X509 Certificate.
author: Amit Kapoor author: Hemma Prafullchandra version: 1.12 See Also: CertAttrSet |
Field Summary | |
final public static String | IDENT Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type. | final public static String | NAME Sub attributes name for this CertAttrSet. | final public static int | V1 | final public static int | V2 | final public static int | V3 | final public static String | VERSION | int | version |
Method Summary | |
public int | compare(int vers) Compare versions. | public void | decode(InputStream in) Decode the CertificateVersion period in DER form from the stream. | public void | delete(String name) Delete the attribute value. | public void | encode(OutputStream out) Encode the CertificateVersion period in DER form to the stream. | public Object | get(String name) Get the attribute value. | public Enumeration | getElements() Return an enumeration of names of attributes existing within this
attribute. | public String | getName() Return the name of this attribute. | public void | set(String name, Object obj) Set the attribute value. | public String | toString() Return the version number of the certificate. |
IDENT | final public static String IDENT(Code) | | Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
|
NAME | final public static String NAME(Code) | | Sub attributes name for this CertAttrSet.
|
V1 | final public static int V1(Code) | | X509Certificate Version 1
|
V2 | final public static int V2(Code) | | X509Certificate Version 2
|
V3 | final public static int V3(Code) | | X509Certificate Version 3
|
CertificateVersion | public CertificateVersion()(Code) | | The default constructor for this class,
sets the version to 0 (i.e. X.509 version 1).
|
CertificateVersion | public CertificateVersion(int version) throws IOException(Code) | | The constructor for this class for the required version.
Parameters: version - the version for the certificate. exception: IOException - if the version is not valid. |
CertificateVersion | public CertificateVersion(DerInputStream in) throws IOException(Code) | | Create the object, decoding the values from the passed DER stream.
Parameters: in - the DerInputStream to read the CertificateVersion from. exception: IOException - on decoding errors. |
CertificateVersion | public CertificateVersion(InputStream in) throws IOException(Code) | | Create the object, decoding the values from the passed stream.
Parameters: in - the InputStream to read the CertificateVersion from. exception: IOException - on decoding errors. |
CertificateVersion | public CertificateVersion(DerValue val) throws IOException(Code) | | Create the object, decoding the values from the passed DerValue.
Parameters: val - the Der encoded value. exception: IOException - on decoding errors. |
compare | public int compare(int vers)(Code) | | Compare versions.
|
decode | public void decode(InputStream in) throws IOException(Code) | | Decode the CertificateVersion period in DER form from the stream.
Parameters: in - the InputStream to unmarshal the contents from. exception: IOException - on errors. |
encode | public void encode(OutputStream out) throws IOException(Code) | | Encode the CertificateVersion period in DER form to the stream.
Parameters: out - the OutputStream to marshal the contents to. exception: IOException - on errors. |
getElements | public Enumeration getElements()(Code) | | Return an enumeration of names of attributes existing within this
attribute.
|
getName | public String getName()(Code) | | Return the name of this attribute.
|
toString | public String toString()(Code) | | Return the version number of the certificate.
|
|
|