SSLCertificateInfo Class Reference
#include <SSLContext.h>
List of all members.
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. |
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.
Gets the notAfter date from the validity period of the certificate.
- Returns:
- a CIMDateTime containing the notAfter date.
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
OpenSSL error code X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH.
OpenSSL error code X509_V_ERR_AKID_SKID_MISMATCH.
OpenSSL error code X509_V_ERR_APPLICATION_VERIFICATION.
OpenSSL error code X509_V_ERR_CERT_CHAIN_TOO_LONG.
OpenSSL error code X509_V_ERR_CERT_HAS_EXPIRED.
OpenSSL error code X509_V_ERR_CERT_NOT_YET_VALID.
OpenSSL error code X509_V_ERR_CERT_REJECTED.
OpenSSL error code X509_V_ERR_CERT_REVOKED.
OpenSSL error code X509_V_ERR_CERT_SIGNATURE_FAILURE.
OpenSSL error code X509_V_ERR_CERT_UNTRUSTED.
OpenSSL error code X509_V_ERR_CRL_HAS_EXPIRED.
OpenSSL error code X509_V_ERR_CRL_NOT_YET_VALID.
OpenSSL error code X509_V_ERR_CRL_SIGNATURE_FAILURE.
OpenSSL error code X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT.
OpenSSL error code X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD.
OpenSSL error code X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD.
OpenSSL error code X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD.
OpenSSL error code X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD.
OpenSSL error code X509_V_ERR_INVALID_CA.
OpenSSL error code X509_V_ERR_INVALID_PURPOSE.
OpenSSL error code X509_V_ERR_KEYUSAGE_NO_CERTSIGN.
OpenSSL error code X509_V_ERR_OUT_OF_MEM.
OpenSSL error code X509_V_ERR_PATH_LENGTH_EXCEEDED.
OpenSSL error code X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN.
OpenSSL error code X509_V_ERR_SUBJECT_ISSUER_MISMATCH.
OpenSSL error code X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY.
OpenSSL error code X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE.
OpenSSL error code X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE.
OpenSSL error code X509_V_ERR_UNABLE_TO_GET_CRL.
OpenSSL error code X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT.
OpenSSL error code X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY.
OpenSSL error code X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE.
Certificate validation result code corresponding to the OpenSSL error code X509_V_OK.
The documentation for this class was generated from the following file:
- /root/rpmbuild/BUILD/pegasus/src/Pegasus/Common/SSLContext.h