SSLCertificateInfo Class Reference
#include <SSLContext.h>
Detailed Description
This class provides the interface that a client gets as argument to certificate verification call back function.
Constructor & Destructor Documentation
SSLCertificateInfo::SSLCertificateInfo ( const String subjectName, const String issuerName, const int errorDepth, const int errorCode, const int respCode ) Constructor for an SSLCertificateInfo object. Note: Do not use this constructor, instead use the private constructor. The constructor is not for client applications use, it is intended to be used only by the CIMServer.
- Parameters:
subjectName subject name of the certificate. issuerName issuer name of the certificate. errorDepth depth of the certificate chain. errorCode error code from the default verification of the certificate by the OpenSSL library. respCode result code from the default verification of the certificate by the OpenSSL library.
SSLCertificateInfo::SSLCertificateInfo ( const SSLCertificateInfo & certificateInfo ) Copy constructor for an SSLCertificateInfo object.
- Parameters:
certificateInfo SSLCertificateInfo object to copy Member Function Documentation
Uint32 SSLCertificateInfo::getErrorCode ( ) const Gets the pre-verify error code.
- Returns:
- an int containing the pre-verify error code
Uint32 SSLCertificateInfo::getErrorDepth ( ) const Gets the depth of the certificate chain.
- Returns:
- an int containing the depth of the certificate chain
String SSLCertificateInfo::getErrorString ( ) const Gets the pre-verify error string.
- Returns:
- a string containing the pre-verify error string
String SSLCertificateInfo::getIssuerName ( ) const Gets the issuer name of the certificate.
- Returns:
- a string containing the issuer name.
CIMDateTime SSLCertificateInfo::getNotAfter ( ) const Gets the notAfter date from the validity period of the certificate.
- Returns:
- a CIMDateTime containing the notAfter date.
CIMDateTime SSLCertificateInfo::getNotBefore ( ) const Gets the notBefore date from the validity period of the certificate.
- Returns:
- a CIMDateTime containing the notBefore date.
Uint32 SSLCertificateInfo::getResponseCode ( ) const Gets the pre-verify response code.
- Returns:
- an int containing the pre-verify response code
long SSLCertificateInfo::getSerialNumber ( ) const Gets the serialNumber value from the certificate.
- Returns:
- a long integer containing the serial number.
String SSLCertificateInfo::getSubjectName ( ) const Gets the subject name of the certificate.
- Returns:
- a string containing the subject name.
Uint32 SSLCertificateInfo::getVersionNumber ( ) const Gets the version (version number) from the certificate.
- Returns:
- a int containing the version.
void SSLCertificateInfo::setErrorCode ( const int errorCode ) Sets the error code.
- Parameters:
errorCode error code to be set
void SSLCertificateInfo::setResponseCode ( const int respCode ) Sets the response code. Note: Do not use this function, the value set using this function is ignored.
- Parameters:
respCode response code to be set.
String SSLCertificateInfo::toString ( ) const Returns a string representation of this object
- Returns:
- a string containing the certificate fields
Member Data Documentation
const int SSLCertificateInfo::V_ERR_AKID_ISSUER_SERIAL_MISMATCH [static]
OpenSSL error code X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH.
const int SSLCertificateInfo::V_ERR_AKID_SKID_MISMATCH [static]
OpenSSL error code X509_V_ERR_AKID_SKID_MISMATCH.
const int SSLCertificateInfo::V_ERR_APPLICATION_VERIFICATION [static]
OpenSSL error code X509_V_ERR_APPLICATION_VERIFICATION.
const int SSLCertificateInfo::V_ERR_CERT_CHAIN_TOO_LONG [static]
OpenSSL error code X509_V_ERR_CERT_CHAIN_TOO_LONG.
const int SSLCertificateInfo::V_ERR_CERT_HAS_EXPIRED [static]
OpenSSL error code X509_V_ERR_CERT_HAS_EXPIRED.
const int SSLCertificateInfo::V_ERR_CERT_NOT_YET_VALID [static]
OpenSSL error code X509_V_ERR_CERT_NOT_YET_VALID.
const int SSLCertificateInfo::V_ERR_CERT_REJECTED [static]
OpenSSL error code X509_V_ERR_CERT_REJECTED.
const int SSLCertificateInfo::V_ERR_CERT_REVOKED [static]
OpenSSL error code X509_V_ERR_CERT_REVOKED.
const int SSLCertificateInfo::V_ERR_CERT_SIGNATURE_FAILURE [static]
OpenSSL error code X509_V_ERR_CERT_SIGNATURE_FAILURE.
const int SSLCertificateInfo::V_ERR_CERT_UNTRUSTED [static]
OpenSSL error code X509_V_ERR_CERT_UNTRUSTED.
const int SSLCertificateInfo::V_ERR_CRL_HAS_EXPIRED [static]
OpenSSL error code X509_V_ERR_CRL_HAS_EXPIRED.
const int SSLCertificateInfo::V_ERR_CRL_NOT_YET_VALID [static]
OpenSSL error code X509_V_ERR_CRL_NOT_YET_VALID.
const int SSLCertificateInfo::V_ERR_CRL_SIGNATURE_FAILURE [static]
OpenSSL error code X509_V_ERR_CRL_SIGNATURE_FAILURE.
const int SSLCertificateInfo::V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT [static]
OpenSSL error code X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT.
const int SSLCertificateInfo::V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD [static]
OpenSSL error code X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD.
const int SSLCertificateInfo::V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD [static]
OpenSSL error code X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD.
const int SSLCertificateInfo::V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD [static]
OpenSSL error code X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD.
const int SSLCertificateInfo::V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD [static]
OpenSSL error code X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD.
const int SSLCertificateInfo::V_ERR_INVALID_CA [static]
OpenSSL error code X509_V_ERR_INVALID_CA.
const int SSLCertificateInfo::V_ERR_INVALID_PURPOSE [static]
OpenSSL error code X509_V_ERR_INVALID_PURPOSE.
const int SSLCertificateInfo::V_ERR_KEYUSAGE_NO_CERTSIGN [static]
OpenSSL error code X509_V_ERR_KEYUSAGE_NO_CERTSIGN.
const int SSLCertificateInfo::V_ERR_OUT_OF_MEM [static]
OpenSSL error code X509_V_ERR_OUT_OF_MEM.
const int SSLCertificateInfo::V_ERR_PATH_LENGTH_EXCEEDED [static]
OpenSSL error code X509_V_ERR_PATH_LENGTH_EXCEEDED.
const int SSLCertificateInfo::V_ERR_SELF_SIGNED_CERT_IN_CHAIN [static]
OpenSSL error code X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN.
const int SSLCertificateInfo::V_ERR_SUBJECT_ISSUER_MISMATCH [static]
OpenSSL error code X509_V_ERR_SUBJECT_ISSUER_MISMATCH.
const int SSLCertificateInfo::V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY [static]
OpenSSL error code X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY.
const int SSLCertificateInfo::V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE [static]
OpenSSL error code X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE.
const int SSLCertificateInfo::V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE [static]
OpenSSL error code X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE.
const int SSLCertificateInfo::V_ERR_UNABLE_TO_GET_CRL [static]
OpenSSL error code X509_V_ERR_UNABLE_TO_GET_CRL.
const int SSLCertificateInfo::V_ERR_UNABLE_TO_GET_ISSUER_CERT [static]
OpenSSL error code X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT.
const int SSLCertificateInfo::V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY [static]
OpenSSL error code X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY.
const int SSLCertificateInfo::V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE [static]
OpenSSL error code X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE.
const int SSLCertificateInfo::V_OK [static]
Certificate validation result code corresponding to the OpenSSL error code X509_V_OK.
The documentation for this class was generated from the following file:
- /var/tmp/tog-pegasus-2.9.0-8m.mo8/pegasus/src/Pegasus/Common/SSLContext.h