A Serial Number assigned by the CA, for use in
certificate revocation and other applications.
- See Also:
- CertAttrSet, Serializable, X509CertImpl
-
algId
-
-
ALGORITHM_ID
-
-
EXTENSIONS
-
-
extensions
-
-
IDENT
- Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
-
interval
-
-
issuer
-
-
ISSUER
-
-
ISSUER_ID
-
-
issuerUniqueId
-
-
KEY
-
-
NAME
-
-
pubKey
-
-
SERIAL_NUMBER
-
-
serialNum
-
-
subject
-
-
SUBJECT
-
-
SUBJECT_ID
-
-
subjectUniqueId
-
-
VALIDITY
-
-
version
-
-
VERSION
-
-
X509CertInfo()
- Construct an uninitialized X509CertInfo on which
decode must later be called (or which may be deserialized).
-
X509CertInfo(byte[])
- Unmarshals a certificate from its encoded form, parsing the
encoded bytes.
-
X509CertInfo(DerValue)
- Unmarshal a certificate from its encoded form, parsing a DER value.
-
decode(InputStream)
- Decode an X.509 certificate from an input stream.
-
delete(String)
- Delete the certificate attribute.
-
encode(OutputStream)
- Appends the certificate to an output stream.
-
equals(Object)
- Compares two X509CertInfo objects.
-
equals(X509CertInfo)
- Compares two certificates, returning false if any data
differs between the two.
-
get(String)
- Get the certificate attribute.
-
getElements()
- Return an enumeration of names of attributes existing within this
attribute.
-
getEncodedInfo()
- Returns the encoded certificate info.
-
getName()
- Return the name of this attribute.
-
hashCode()
- Calculates a hash code value for the object.
-
set(String, Object)
- Set the certificate attribute.
-
toString()
- Returns a printable representation of the certificate.
IDENT
public static final String IDENT
- Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
NAME
public static final String NAME
VERSION
public static final String VERSION
SERIAL_NUMBER
public static final String SERIAL_NUMBER
ALGORITHM_ID
public static final String ALGORITHM_ID
ISSUER
public static final String ISSUER
VALIDITY
public static final String VALIDITY
SUBJECT
public static final String SUBJECT
KEY
public static final String KEY
ISSUER_ID
public static final String ISSUER_ID
SUBJECT_ID
public static final String SUBJECT_ID
EXTENSIONS
public static final String EXTENSIONS
version
protected CertificateVersion version
serialNum
protected CertificateSerialNumber serialNum
algId
protected CertificateAlgorithmId algId
issuer
protected CertificateIssuerName issuer
interval
protected CertificateValidity interval
subject
protected CertificateSubjectName subject
pubKey
protected CertificateX509Key pubKey
issuerUniqueId
protected CertificateIssuerUniqueIdentity issuerUniqueId
subjectUniqueId
protected CertificateSubjectUniqueIdentity subjectUniqueId
extensions
protected CertificateExtensions extensions
X509CertInfo
public X509CertInfo()
- Construct an uninitialized X509CertInfo on which
decode must later be called (or which may be deserialized).
X509CertInfo
public X509CertInfo(byte cert[]) throws CertificateParsingException
- 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.
- Throws: CertificateParsingException
- on parsing errors.
X509CertInfo
public X509CertInfo(DerValue derVal) throws CertificateParsingException
- 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.
- Throws: CertificateParsingException
- on parsing errors.
decode
public void decode(InputStream in) throws CertificateParsingException, IOException
- Decode an X.509 certificate from an input stream.
- Parameters:
- in - an input stream holding at least one certificate
- Throws: CertificateParsingException
- on decoding errors.
- Throws: IOException
- on other errors.
encode
public void encode(OutputStream out) throws CertificateException, IOException
- Appends the certificate to an output stream.
- Parameters:
- out - an output stream to which the certificate is appended.
- Throws: CertificateException
- on encoding errors.
- Throws: IOException
- on other errors.
getElements
public Enumeration getElements()
- Return an enumeration of names of attributes existing within this
attribute.
getName
public String getName()
- Return the name of this attribute.
getEncodedInfo
public byte[] getEncodedInfo() throws CertificateEncodingException
- Returns the encoded certificate info.
- Throws: CertificateEncodingException
- on encoding information errors.
equals
public boolean equals(Object other)
- 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
- Returns:
- true iff the certificates are equivalent
equals
public boolean equals(X509CertInfo other)
- Compares two certificates, returning false if any data
differs between the two.
- Parameters:
- other - the object being compared with this one
- Returns:
- true iff the certificates are equivalent
hashCode
public int hashCode()
- Calculates a hash code value for the object. Objects
which are equal will also have the same hashcode.
toString
public String toString()
- Returns a printable representation of the certificate.
set
public void set(String name,
Object val) throws CertificateException, IOException
- Set the certificate attribute.
- Parameters:
- s - name the name of the Certificate attribute.
- s - val the value of the Certificate attribute.
- Throws: CertificateException
- on invalid attributes.
- Throws: IOException
- on other errors.
delete
public void delete(String name) throws CertificateException, IOException
- Delete the certificate attribute.
- Parameters:
- s - name the name of the Certificate attribute.
- Throws: CertificateException
- on invalid attributes.
- Throws: IOException
- on other errors.
get
public Object get(String name) throws CertificateException, IOException
- Get the certificate attribute.
- Parameters:
- s - name the name of the Certificate attribute.
- Throws: CertificateException
- on invalid attributes.
- Throws: IOException
- on other errors.
All Packages Class Hierarchy This Package Previous Next Index