|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security12.sun.security.x509.X509CertInfo
The X509CertInfo class represents X.509 certificate information.
X.509 certificates have several base data elements, including:
CertAttrSet
,
X509CertImpl
Field Summary | |
protected CertificateAlgorithmId |
algId
|
static String |
ALGORITHM_ID
|
protected CertificateExtensions |
extensions
|
static String |
EXTENSIONS
|
static String |
IDENT
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type. |
protected CertificateValidity |
interval
|
protected CertificateIssuerName |
issuer
|
static String |
ISSUER
|
static String |
ISSUER_ID
|
protected CertificateIssuerUniqueIdentity |
issuerUniqueId
|
static String |
KEY
|
static String |
NAME
|
protected CertificateX509Key |
pubKey
|
static String |
SERIAL_NUMBER
|
protected CertificateSerialNumber |
serialNum
|
protected CertificateSubjectName |
subject
|
static String |
SUBJECT
|
static String |
SUBJECT_ID
|
protected CertificateSubjectUniqueIdentity |
subjectUniqueId
|
static String |
VALIDITY
|
protected CertificateVersion |
version
|
static String |
VERSION
|
Constructor Summary | |
X509CertInfo()
Construct an uninitialized X509CertInfo on which decode must later be called (or which may be deserialized). |
|
X509CertInfo(byte[] cert)
Unmarshals a certificate from its encoded form, parsing the encoded bytes. |
|
X509CertInfo(DerValue derVal)
Unmarshal a certificate from its encoded form, parsing a DER value. |
Method Summary | |
void |
decode(InputStream in)
Decode an X.509 certificate from an input stream. |
void |
delete(String name)
Delete the certificate attribute. |
void |
encode(OutputStream out)
Appends the certificate to an output stream. |
boolean |
equals(Object other)
Compares two X509CertInfo objects. |
boolean |
equals(X509CertInfo other)
Compares two certificates, returning false if any data differs between the two. |
Object |
get(String name)
Get the certificate attribute. |
Enumeration |
getElements()
Return an enumeration of names of attributes existing within this attribute. |
byte[] |
getEncodedInfo()
Returns the encoded certificate info. |
String |
getName()
Return the name of this attribute. |
int |
hashCode()
Calculates a hash code value for the object. |
void |
set(String name,
Object val)
Set the certificate attribute. |
String |
toString()
Returns a printable representation of the certificate. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final String IDENT
public static final String NAME
public static final String VERSION
public static final String SERIAL_NUMBER
public static final String ALGORITHM_ID
public static final String ISSUER
public static final String VALIDITY
public static final String SUBJECT
public static final String KEY
public static final String ISSUER_ID
public static final String SUBJECT_ID
public static final String EXTENSIONS
protected CertificateVersion version
protected CertificateSerialNumber serialNum
protected CertificateAlgorithmId algId
protected CertificateIssuerName issuer
protected CertificateValidity interval
protected CertificateSubjectName subject
protected CertificateX509Key pubKey
protected CertificateIssuerUniqueIdentity issuerUniqueId
protected CertificateSubjectUniqueIdentity subjectUniqueId
protected CertificateExtensions extensions
Constructor Detail |
public X509CertInfo()
public X509CertInfo(byte[] cert) throws CertificateParsingException
cert
- the encoded bytes, with no trailing data.public X509CertInfo(DerValue derVal) throws CertificateParsingException
derVal
- the der value containing the encoded cert.Method Detail |
public void decode(InputStream in) throws CertificateParsingException, IOException
in
- an input stream holding at least one certificatepublic void encode(OutputStream out) throws CertificateException, IOException
out
- an output stream to which the certificate is appended.public Enumeration getElements()
public String getName()
public byte[] getEncodedInfo() throws CertificateEncodingException
public boolean equals(Object other)
public boolean equals(X509CertInfo other)
other
- the object being compared with this onepublic int hashCode()
public String toString()
public void set(String name, Object val) throws CertificateException, IOException
public void delete(String name) throws CertificateException, IOException
public Object get(String name) throws CertificateException, IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |