COCSPResponse Class Reference

class COCSPResponse : public CSignedObject

Represents an OCSP protocol response.

Inherits from

Public Member Functions
~COCSPResponse ()
IMPORT_C const TTime * ArchiveCutoff ()
IMPORT_C TInt CertCount ()
IMPORT_C const COCSPResponseCertInfo & CertInfo ( TUint )
const TPtrC8 * DataElementEncoding (const TUint )
TInt Find (const COCSPCertID &)
IMPORT_C TTime ProducedAt ()
Private Member Functions
COCSPResponse ()
void InternalizeL ( RReadStream &)
const TPtrC8 SignedDataL ()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CSignedObject::Encoding()const
CSignedObject::ExternalizeL(RWriteStream &)const
CSignedObject::Fingerprint()const
CSignedObject::SetParametersL(const CSigningKeyParameters &)
CSignedObject::Signature()const
CSignedObject::SigningAlgorithm()const
CSignedObject::VerifyRSASignatureL(const TDesC8 &)const
CSignedObject::VerifyRSASignatureL(const TDesC8 &,const TDesC8 &)const
CSignedObject::VerifySignatureL(const TDesC8 &)const
CSignedObject::VerifySignatureL(const TDesC8 &,const TDesC8 &)const
CSignedObject::~CSignedObject()
Public Member Enumerations
enum anonymous { ECertificateChain , ENonce , EResponderIDName , EResponderIDKeyHash }
Private Attributes
TTime * iArchiveCutoff
RPointerArray < COCSPResponseCertInfo > iCertInfos
TPtrC8 iNonce
TTime iProducedAt
TPtrC8 iResponderIDKeyHash
TPtrC8 iResponderIDName
TPtrC8 iSignedData
TPtrC8 iSigningCerts
Inherited Attributes
CSignedObject::iEncoding
CSignedObject::iFingerprint
CSignedObject::iKeyFactory
CSignedObject::iParameters
CSignedObject::iSignature
CSignedObject::iSigningAlgorithm

Constructor & Destructor Documentation

COCSPResponse()

COCSPResponse ( ) [private]

~COCSPResponse()

~COCSPResponse ( )

Member Functions Documentation

ArchiveCutoff()

IMPORT_C const TTime * ArchiveCutoff ( ) const

Get the archiveCutoff time for the response, or NULL if it was not present.

CertCount()

IMPORT_C TInt CertCount ( ) const

Get the number of certificates statuses present in the response.

CertInfo(TUint)

IMPORT_C const COCSPResponseCertInfo & CertInfo ( TUint aIndex ) const

Get a COCSPResponseCertInfo object containing details about one of the certificate statuses present in the response.

Parameters

TUint aIndex

DataElementEncoding(const TUint)

const TPtrC8 * DataElementEncoding ( const TUint aIndex ) const [virtual]

Gets the encoded data for the specified encoded data element, in the (to be signed) tbsCertificate data structure, of the signed object.

Parameters

const TUint aIndex The encoded data element position in the tbsCertificate data structure. See the enumeration: CX509Certificate::Anonymous.

Find(const COCSPCertID &)

TInt Find ( const COCSPCertID & aCertID ) const

Get the index for the given cert, or KErrNotFound.

Parameters

const COCSPCertID & aCertID

InternalizeL(RReadStream &)

void InternalizeL ( RReadStream & aStream ) [private, virtual]

Internalises the encoded object from a read stream.

The class makes use of a specification-specific parser class for extracting the various elements, that is provided by a subclass of CSignedObject . For this reason this function is pure virtual.

The presence of this function means that the standard templated operator>>() can be used to internalise objects of this class.

Parameters

RReadStream & aStream Stream from which the contents of the field should be internalised.

ProducedAt()

IMPORT_C TTime ProducedAt ( ) const

Get the producedAt time for the response.

SignedDataL()

const TPtrC8 SignedDataL ( ) const [private, virtual]

Gets the signed data.

Member Enumerations Documentation

Enum anonymous

Enumerators

ECertificateChain
ENonce
EResponderIDName
EResponderIDKeyHash

Member Data Documentation

TTime * iArchiveCutoff

TTime * iArchiveCutoff [private]

RPointerArray< COCSPResponseCertInfo > iCertInfos

RPointerArray < COCSPResponseCertInfo > iCertInfos [private]

TPtrC8 iNonce

TPtrC8 iNonce [private]

TTime iProducedAt

TTime iProducedAt [private]

TPtrC8 iResponderIDKeyHash

TPtrC8 iResponderIDKeyHash [private]

TPtrC8 iResponderIDName

TPtrC8 iResponderIDName [private]

TPtrC8 iSignedData

TPtrC8 iSignedData [private]

TPtrC8 iSigningCerts

TPtrC8 iSigningCerts [private]