In file ../../src/Pegasus/Common/SSLContext.h:

class PEGASUS_COMMON_LINKAGE SSLCertificateInfo

This class provides the interface that a client gets as argument to certificate verification call back function

Documentation

This class provides the interface that a client gets as argument to certificate verification call back function

Inheritance:


Public Methods

[more] SSLCertificateInfo ( const String subjectName, const String issuerName, const int errorDepth, const int errorCode, const int respCode)
Constructor for a SSLCertificateInfo object.
[more] SSLCertificateInfo (const SSLCertificateInfo& certificateInfo)
Copy constructor for a SSLCertificateInfo object.
[more]String getSubjectName () const
Gets the subject name of the certificate.
[more]String getIssuerName () const
Gets the issuer name of the certificate.
[more]CIMDateTime getNotAfter () const
Gets the notAfter date from the validity period of the certificate.
[more]CIMDateTime getNotBefore () const
Gets the notBefore date from the validity period of the certificate.
[more]Uint32 getVersionNumber () const
Gets the version (version number) from the certificate.
[more]long getSerialNumber () const
Gets the serialNumber value from the certificate.
[more]Uint32 getErrorDepth () const
Gets the depth of the certificate chain.
[more]Uint32 getErrorCode () const
Gets the pre-verify error code.
[more]void setErrorCode (const int errorCode)
Sets the error code.
[more]String getErrorString () const
Gets the pre-verify error string.
[more]Uint32 getResponseCode () const
Gets the pre-verify response code.
[more]void setResponseCode (const int respCode)
Sets the response code.
[more]String toString () const
Returns a string representation of this object

o SSLCertificateInfo( const String subjectName, const String issuerName, const int errorDepth, const int errorCode, const int respCode)
Constructor for a 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.

o SSLCertificateInfo(const SSLCertificateInfo& certificateInfo)
Copy constructor for a SSLCertificateInfo object.
Parameters:
certificateInfo - SSLCertificateInfo object to copy

oString getSubjectName() const
Gets the subject name of the certificate.
Returns:
a string containing the subject name.

oString getIssuerName() const
Gets the issuer name of the certificate.
Returns:
a string containing the issuer name.

oCIMDateTime getNotAfter() const
Gets the notAfter date from the validity period of the certificate.
Returns:
a CIMDateTime containing the notAfter date.

oCIMDateTime getNotBefore() const
Gets the notBefore date from the validity period of the certificate.
Returns:
a CIMDateTime containing the notBefore date.

oUint32 getVersionNumber() const
Gets the version (version number) from the certificate.
Returns:
a int containing the version.

olong getSerialNumber() const
Gets the serialNumber value from the certificate.
Returns:
a long integer containing the serial number.

oUint32 getErrorDepth() const
Gets the depth of the certificate chain.
Returns:
an int containing the depth of the certificate chain

oUint32 getErrorCode() const
Gets the pre-verify error code.
Returns:
an int containing the pre-verify error code

ovoid setErrorCode(const int errorCode)
Sets the error code.
Parameters:
errorCode - error code to be set

oString getErrorString() const
Gets the pre-verify error string.
Returns:
a string containing the pre-verify error string

oUint32 getResponseCode() const
Gets the pre-verify response code.
Returns:
an int containing the pre-verify response code

ovoid 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.

oString toString() const
Returns a string representation of this object
Returns:
a string containing the certificate fields


This class has no child classes.
Friends:
class SSLSocket
class SSLCallback

Alphabetic index HTML hierarchy of classes or Java