| java.lang.Object sun.security.x509.X509CertInfo
X509CertInfo | public class X509CertInfo implements CertAttrSet(Code) | | The X509CertInfo class represents X.509 certificate information.
X.509 certificates have several base data elements, including:
- The Subject Name, an X.500 Distinguished Name for
the entity (subject) for which the certificate was issued.
- The Subject Public Key, the public key of the subject.
This is one of the most important parts of the certificate.
- The Validity Period, a time period (e.g. six months)
within which the certificate is valid (unless revoked).
- The Issuer Name, an X.500 Distinguished Name for the
Certificate Authority (CA) which issued the certificate.
- A Serial Number assigned by the CA, for use in
certificate revocation and other applications.
author: Amit Kapoor author: Hemma Prafullchandra version: 1.23 See Also: CertAttrSet See Also: X509CertImpl |
Constructor Summary | |
public | X509CertInfo() Construct an uninitialized X509CertInfo on which
decode must later be called (or which may be deserialized). | public | X509CertInfo(byte[] cert) Unmarshals a certificate from its encoded form, parsing the
encoded bytes. | public | X509CertInfo(DerValue derVal) Unmarshal a certificate from its encoded form, parsing a DER value. |
Method Summary | |
public void | decode(InputStream in) Decode an X.509 certificate from an input stream. | public void | delete(String name) Delete the certificate attribute. | public void | encode(OutputStream out) Appends the certificate to an output stream. | public boolean | equals(Object other) Compares two X509CertInfo objects. | public boolean | equals(X509CertInfo other) Compares two certificates, returning false if any data
differs between the two. | public Object | get(String name) Get the certificate attribute. | public Enumeration | getElements() Return an enumeration of names of attributes existing within this
attribute. | public byte[] | getEncodedInfo() Returns the encoded certificate info. | public String | getName() Return the name of this attribute. | public int | hashCode() Calculates a hash code value for the object. | public void | set(String name, Object val) Set the certificate attribute. | public String | toString() Returns a printable representation 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.
|
X509CertInfo | public X509CertInfo()(Code) | | Construct an uninitialized X509CertInfo on which
decode must later be called (or which may be deserialized).
|
X509CertInfo | public X509CertInfo(byte[] cert) throws CertificateParsingException(Code) | | Unmarshals a certificate from its encoded form, parsing the
encoded bytes. This form of constructor is used by agents which
need to examine and use certificate contents. That is, this is
one of the more commonly used constructors. Note that the buffer
must include only a certificate, and no "garbage" may be left at
the end. If you need to ignore data at the end of a certificate,
use another constructor.
Parameters: cert - the encoded bytes, with no trailing data. exception: CertificateParsingException - on parsing errors. |
X509CertInfo | public X509CertInfo(DerValue derVal) throws CertificateParsingException(Code) | | Unmarshal a certificate from its encoded form, parsing a DER value.
This form of constructor is used by agents which need to examine
and use certificate contents.
Parameters: derVal - the der value containing the encoded cert. exception: CertificateParsingException - on parsing errors. |
equals | public boolean equals(Object other)(Code) | | Compares two X509CertInfo objects. This is false if the
certificates are not both X.509 certs, otherwise it
compares them as binary data.
Parameters: other - the object being compared with this one true iff the certificates are equivalent |
equals | public boolean equals(X509CertInfo other)(Code) | | Compares two certificates, returning false if any data
differs between the two.
Parameters: other - the object being compared with this one true iff the certificates are equivalent |
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.
|
hashCode | public int hashCode()(Code) | | Calculates a hash code value for the object. Objects
which are equal will also have the same hashcode.
|
toString | public String toString()(Code) | | Returns a printable representation of the certificate.
|
|
|