public class CertificateInfo extends Object implements Serializable, PKIExceptionMsgIds
Modifier and Type | Field and Description |
---|---|
protected String |
alias |
protected byte[] |
certificateDER |
protected byte[] |
certSignature |
protected Integer |
hashCode |
protected X509Certificate |
javaCertificate |
protected RevocationData |
revocation |
protected com.rsa.certj.cert.X509Certificate |
rsaCertificate |
protected int |
trustBit
Trust Bit for the certificate.
|
CACHE_HANDLER_DEREGISTER, CACHE_HANDLER_REGISTER, CAN_NOT_CREATE_EXN, CAN_NOT_DIGEST_CONTENT_DATA, CAN_NOT_GET_CREDENTIAL, CAN_NOT_GET_XXX, CAN_NOT_PARSE_CRL, CAN_NOT_SIGN_XXX, CAN_NOT_VALIDATE_PATH_EXN, CERT_DB_EXN, CERT_DB_INIT_EXN, CERT_PATH_EXN, CERTIFICATE_MGR_TRUST_EXN, CLONE_FAILED_EXN, CONVERT_BYTES_TO_XXX_EXN, CONVERT_STREAM_TO_XXX_EXN, CONVERT_XXX_TO_BYTES_EXN, COULD_NOT_VERIFY_XML_SIGNATURE, DATA_DIGEST_ERROR, ERROR_IN_PROCESSING_CERT, ERROR_IN_PROCESSING_POLICY_CONSTRAINTS, ERROR_INITIALIZING_CERT_DB, GENERAL_EXCEPTION_EXN, GraphNodeTypeMismatch, INTERNAL_ERROR, INVALID_CERT_TYPE, InvalidPolicyOidException, ISSUERS_DO_NOT_MATCH, MALFORMED_URL_EXN, MAX_SESSION_EXN, PATH_BUILDER_EXN, REVOCATION_STATUS_INVALID, REVOCATION_TYPE_NOT_CRL, RIGHT_DIGEST_NOT_PRESENT, RND_INVALID_EXN, SCOPE_VERIFICATION_FAILED, SHA1_EXN, SIGNER_VERIFICATION_FAILED, TO_GENERALNAME_EXN, TRANSPORT_CREATE_EXN, TRANSPORT_DISABLED_EXN, TRANSPORT_EXN, TRUSTSTORE_RETRIEVAL_WARN, TSP_DIGEST_EXN, TSP_GENERAL_EXN, TSP_INVALID_MIME_TYPE, TSP_INVALID_TSA_EXN, TSP_NODATA_EXN, TSP_NOURL_EXN, TSP_RESPONSE_EXN, TSP_RETREIVE_EXN, TSP_TST_INVALID_EXN, TSP_TST_VERIFY_EXN, TYPE_DOES_NOT_MATCH_WITH_PARAMS, UNRECOGNIZED_CRITICAL_CRL_EXTENSION, XXX_CAN_NOT_BE_NULL, XXX_DOES_NOT_EXIST, XXX_IS_NULL, XXX_NOT_PRESENT, XXX_NOT_SET
Constructor and Description |
---|
CertificateInfo(byte[] certBytes)
Constructs the object from the specified certificate.
|
CertificateInfo(InputStream is)
Constructs the object from the specified certificate.
|
CertificateInfo(X509Certificate certificate) |
CertificateInfo(com.rsa.certj.cert.X509Certificate certificate) |
Modifier and Type | Method and Description |
---|---|
CertificateInfo |
copy()
Shallow copy of the certificate.
|
boolean |
equals(Object obj) |
String |
getAlias()
Get the Alias of the certificate (if present)
|
static Object[] |
getCertificateArray(CertificateInfo[] infos,
CertificateType type) |
byte[] |
getCertificateDER()
Gets the DER encoded byte array of the certificate
|
X509Certificate |
getJavaCertificate() |
RevocationData |
getRevocationData()
Gets the Revocation Information associated with the certificate
|
com.rsa.certj.cert.X509Certificate |
getRSACertificate() |
byte[] |
getSignature() |
int |
getTrustBit()
Gets the trust bit of the certificate
created by ankit
|
int |
hashCode() |
boolean |
isTrustAnchor()
Gets whether the certificate is a Trust Anchor or not
|
void |
setAlias(String alias) |
String |
toString() |
protected com.rsa.certj.cert.X509Certificate rsaCertificate
protected X509Certificate javaCertificate
protected byte[] certificateDER
protected RevocationData revocation
protected int trustBit
protected String alias
protected Integer hashCode
protected byte[] certSignature
public CertificateInfo(byte[] certBytes)
certBytes
- DER/Base64 encoded byte array of the certificate.PKIException
- If the byte array does not contain a valid certificate.public CertificateInfo(InputStream is) throws PKIException
is
- Inputstream containing the certificatePKIException
- If the stream does not contain a valid certificate.public CertificateInfo(X509Certificate certificate)
certificate
- Java Certificatepublic CertificateInfo(com.rsa.certj.cert.X509Certificate certificate)
public RevocationData getRevocationData()
public int getTrustBit()
public boolean isTrustAnchor()
public X509Certificate getJavaCertificate() throws PKIException
PKIException
PKIException
public com.rsa.certj.cert.X509Certificate getRSACertificate() throws PKIException
PKIException
public byte[] getCertificateDER() throws PKIException
PKIException
- If could not retrieve the certificate.public byte[] getSignature()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public static Object[] getCertificateArray(CertificateInfo[] infos, CertificateType type) throws PKIException
infos
- type
- Certificate Type requestedPKIException
public String getAlias()
public void setAlias(String alias)
alias
- Set the aliaspublic CertificateInfo copy()
Copyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.