SSLCertificateInfo Class Reference

#include <SSLContext.h>

List of all members.

Public Member Functions

 SSLCertificateInfo (const String subjectName, const String issuerName, const int errorDepth, const int errorCode, const int respCode)
 SSLCertificateInfo (const SSLCertificateInfo &certificateInfo)
String getSubjectName () const
String getIssuerName () const
CIMDateTime getNotAfter () const
CIMDateTime getNotBefore () const
Uint32 getVersionNumber () const
long getSerialNumber () const
Uint32 getErrorDepth () const
Uint32 getErrorCode () const
void setErrorCode (const int errorCode)
String getErrorString () const
Uint32 getResponseCode () const
void setResponseCode (const int respCode)
String toString () const

Static Public Attributes

static const int V_OK
static const int V_ERR_UNABLE_TO_GET_ISSUER_CERT
static const int V_ERR_UNABLE_TO_GET_CRL
static const int V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE
static const int V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE
static const int V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY
static const int V_ERR_CERT_SIGNATURE_FAILURE
static const int V_ERR_CRL_SIGNATURE_FAILURE
static const int V_ERR_CERT_NOT_YET_VALID
static const int V_ERR_CERT_HAS_EXPIRED
static const int V_ERR_CRL_NOT_YET_VALID
static const int V_ERR_CRL_HAS_EXPIRED
static const int V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD
static const int V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD
static const int V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD
static const int V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD
static const int V_ERR_OUT_OF_MEM
static const int V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT
static const int V_ERR_SELF_SIGNED_CERT_IN_CHAIN
static const int V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY
static const int V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE
static const int V_ERR_CERT_CHAIN_TOO_LONG
static const int V_ERR_CERT_REVOKED
static const int V_ERR_INVALID_CA
static const int V_ERR_PATH_LENGTH_EXCEEDED
static const int V_ERR_INVALID_PURPOSE
static const int V_ERR_CERT_UNTRUSTED
static const int V_ERR_CERT_REJECTED
static const int V_ERR_SUBJECT_ISSUER_MISMATCH
static const int V_ERR_AKID_SKID_MISMATCH
static const int V_ERR_AKID_ISSUER_SERIAL_MISMATCH
static const int V_ERR_KEYUSAGE_NO_CERTSIGN
static const int V_ERR_APPLICATION_VERIFICATION


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

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.

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:
  • /scratch/rpmbuild.16050.r16097/pegasus/src/Pegasus/Common/SSLContext.h