CCMSOriginatorIdentifierOrKey Class Reference

class CCMSOriginatorIdentifierOrKey : public CBase

OriginatorIdentifierOrKey type module

ASN.1 definition: OriginatorIdentifierOrKey ::= CHOICE { issuerAndSerialNumber IssuerAndSerialNumber, subjectKeyIdentifier [0] SubjectKeyIdentifier, originatorKey [1] OriginatorPublicKey } cms.lib
Since
2.8

Inherits from

  • CCMSOriginatorIdentifierOrKey
Public Member Functions
~CCMSOriginatorIdentifierOrKey ()
void DecodeL (const TDesC8 &)
void EncodeL ( HBufC8 *&)
CASN1EncBase * EncoderLC ()
IMPORT_C const CCMSIssuerAndSerialNumber & IssuerAndSerialNumberL ()
IMPORT_C CCMSOriginatorIdentifierOrKey * NewL ()
IMPORT_C CCMSOriginatorIdentifierOrKey * NewL (const CCMSIssuerAndSerialNumber &)
IMPORT_C CCMSOriginatorIdentifierOrKey * NewL (const TDesC8 &)
IMPORT_C CCMSOriginatorIdentifierOrKey * NewL (const CCMSOriginatorPublicKey &)
IMPORT_C const CCMSOriginatorPublicKey & OriginatorKeyL ()
IMPORT_C void SetIssuerAndSerialNumberL (const CCMSIssuerAndSerialNumber &)
IMPORT_C void SetOriginatorKeyL (const CCMSOriginatorPublicKey &)
IMPORT_C void SetSubjectKeyIdentifierL (const TDesC8 &)
IMPORT_C const TDesC8 & SubjectKeyIdentifierL ()
IMPORT_C TType Type ()
Protected Member Functions
CCMSOriginatorIdentifierOrKey ()
IMPORT_C void ConstructL (const CCMSIssuerAndSerialNumber &)
IMPORT_C void ConstructL (const TDesC8 &)
IMPORT_C void ConstructL (const CCMSOriginatorPublicKey &)
Private Member Functions
void DeleteOldValueAndChangeTypeL ( TType )
CASN1EncBase * EncoderOriginatorKeyLC ()
CASN1EncBase * EncoderSubjectKeyIdentifierLC ()
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()
Public Member Enumerations
enum TType { ESubjectKeyIdentifier  = 0, EOriginatorKey  = 1, EIssuerAndSerialNumber }
Private Attributes
CCMSIssuerAndSerialNumber * iIssuerAndSerialNumber
CCMSOriginatorPublicKey * iOriginatorKey
HBufC8 * iSubjectKeyIdentifier
TType iType

Constructor & Destructor Documentation

CCMSOriginatorIdentifierOrKey()

IMPORT_C CCMSOriginatorIdentifierOrKey ( ) [protected]

C++ default constructor.

~CCMSOriginatorIdentifierOrKey()

~CCMSOriginatorIdentifierOrKey ( ) [virtual]

Destructor.

Member Functions Documentation

ConstructL(const CCMSIssuerAndSerialNumber &)

IMPORT_C void ConstructL ( const CCMSIssuerAndSerialNumber & aIssuerAndSerialNumber ) [protected]

Protected construction to allow derivation

Parameters

const CCMSIssuerAndSerialNumber & aIssuerAndSerialNumber

ConstructL(const TDesC8 &)

IMPORT_C void ConstructL ( const TDesC8 & aSubjectKeyIdentifier ) [protected]

Protected construction to allow derivation

Parameters

const TDesC8 & aSubjectKeyIdentifier

ConstructL(const CCMSOriginatorPublicKey &)

IMPORT_C void ConstructL ( const CCMSOriginatorPublicKey & aOriginatorKey ) [protected]

Protected construction to allow derivation

Parameters

const CCMSOriginatorPublicKey & aOriginatorKey

DecodeL(const TDesC8 &)

void DecodeL ( const TDesC8 & aRawData )
From MCMSModule
Since
2.8

Parameters

const TDesC8 & aRawData raw-data to be parsed in this instance

DeleteOldValueAndChangeTypeL(TType)

void DeleteOldValueAndChangeTypeL ( TType aNewType ) [private]

Deletes old value and changes the type of the choice.

Parameters

TType aNewType The type of the CHOICE will be set to aNewType.

EncodeL(HBufC8 *&)

void EncodeL ( HBufC8 *& aResult ) const
From MCMSModule
Since
2.8

Parameters

HBufC8 *& aResult Allocates and sets result in this variable

EncoderLC()

CASN1EncBase * EncoderLC ( ) const
From MCMSModule
Since
2.8

EncoderOriginatorKeyLC()

CASN1EncBase * EncoderOriginatorKeyLC ( ) const [private]

Creates Encoder for the OriginatorKey value

EncoderSubjectKeyIdentifierLC()

CASN1EncBase * EncoderSubjectKeyIdentifierLC ( ) const [private]

Creates Encoder for the SubjectKeyIdentifier value

IssuerAndSerialNumberL()

IMPORT_C const CCMSIssuerAndSerialNumber & IssuerAndSerialNumberL ( ) const
Getter for IssuerAndSerialNumber. Leaves with KErrNotFound if the type of this CHOICE is not EIssuerAndSerialNumber.
Since
2.8

NewL()

IMPORT_C CCMSOriginatorIdentifierOrKey * NewL ( ) [static]

Two-phased constructor.

NewL(const CCMSIssuerAndSerialNumber &)

IMPORT_C CCMSOriginatorIdentifierOrKey * NewL ( const CCMSIssuerAndSerialNumber & aIssuerAndSerialNumber ) [static]

Two-phased constructor. Copies of the parameters are made.

Parameters

const CCMSIssuerAndSerialNumber & aIssuerAndSerialNumber identifies sender's certificate

NewL(const TDesC8 &)

IMPORT_C CCMSOriginatorIdentifierOrKey * NewL ( const TDesC8 & aSubjectKeyIdentifier ) [static]

Two-phased constructor. Copies of the parameters are made.

Parameters

const TDesC8 & aSubjectKeyIdentifier X.509 subjectKeyIdentifier

NewL(const CCMSOriginatorPublicKey &)

IMPORT_C CCMSOriginatorIdentifierOrKey * NewL ( const CCMSOriginatorPublicKey & aOriginatorKey ) [static]

Two-phased constructor. Copies of the parameters are made.

Parameters

const CCMSOriginatorPublicKey & aOriginatorKey includes algorithm identifier and public key

OriginatorKeyL()

IMPORT_C const CCMSOriginatorPublicKey & OriginatorKeyL ( ) const
Getter for OriginatorKey. Leaves with KErrNotFound if the type of this CHOICE is not EOriginatorKey.
Since
2,8

SetIssuerAndSerialNumberL(const CCMSIssuerAndSerialNumber &)

IMPORT_C void SetIssuerAndSerialNumberL ( const CCMSIssuerAndSerialNumber & aIssuerAndSerialNumber )
Setter for IssuerAndSerialNumber. Create a copy of the parameters.
Since
2.8

Parameters

const CCMSIssuerAndSerialNumber & aIssuerAndSerialNumber identifies sender's certificate

SetOriginatorKeyL(const CCMSOriginatorPublicKey &)

IMPORT_C void SetOriginatorKeyL ( const CCMSOriginatorPublicKey & aOriginatorKey )
Setter for originatorKey
Since
2.8

Parameters

const CCMSOriginatorPublicKey & aOriginatorKey includes algorithm identifier and public key

SetSubjectKeyIdentifierL(const TDesC8 &)

IMPORT_C void SetSubjectKeyIdentifierL ( const TDesC8 & aSubjectKeyIdentifier )
Setter for subjectKeyIdentifier
Since
2,8

Parameters

const TDesC8 & aSubjectKeyIdentifier X.509 subjectKeyIdentifier

SubjectKeyIdentifierL()

IMPORT_C const TDesC8 & SubjectKeyIdentifierL ( ) const
Getter for the X.509 subjectKeyIdentifier. Leaves with KErrNotFound if the type of this CHOICE is not ESubjectKeyIdentifier.
Since
2,8

Type()

IMPORT_C TType Type ( ) const
Getter for the CHOICE type. There is no corresponding setter method as the type is set implicitly by the member value setters.
Since
2.8

Member Enumerations Documentation

Enum TType

Enumerators

ESubjectKeyIdentifier = 0
EOriginatorKey = 1
EIssuerAndSerialNumber

Member Data Documentation

CCMSIssuerAndSerialNumber * iIssuerAndSerialNumber

CCMSIssuerAndSerialNumber * iIssuerAndSerialNumber [private]

CCMSOriginatorPublicKey * iOriginatorKey

CCMSOriginatorPublicKey * iOriginatorKey [private]

HBufC8 * iSubjectKeyIdentifier

HBufC8 * iSubjectKeyIdentifier [private]

TType iType

TType iType [private]