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()
voidDecodeL(const TDesC8 &)
voidEncodeL(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 voidSetIssuerAndSerialNumberL(const CCMSIssuerAndSerialNumber &)
IMPORT_C voidSetOriginatorKeyL(const CCMSOriginatorPublicKey &)
IMPORT_C voidSetSubjectKeyIdentifierL(const TDesC8 &)
IMPORT_C const TDesC8 &SubjectKeyIdentifierL()
IMPORT_C TTypeType()
Protected Member Functions
CCMSOriginatorIdentifierOrKey()
IMPORT_C voidConstructL(const CCMSIssuerAndSerialNumber &)
IMPORT_C voidConstructL(const TDesC8 &)
IMPORT_C voidConstructL(const CCMSOriginatorPublicKey &)
Private Member Functions
voidDeleteOldValueAndChangeTypeL(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
enumTType { ESubjectKeyIdentifier = 0, EOriginatorKey = 1, EIssuerAndSerialNumber }
Private Attributes
CCMSIssuerAndSerialNumber *iIssuerAndSerialNumber
CCMSOriginatorPublicKey *iOriginatorKey
HBufC8 *iSubjectKeyIdentifier
TType iType

Constructor & Destructor Documentation

CCMSOriginatorIdentifierOrKey()

IMPORT_CCCMSOriginatorIdentifierOrKey()[protected]

C++ default constructor.

~CCMSOriginatorIdentifierOrKey()

~CCMSOriginatorIdentifierOrKey()[virtual]

Destructor.

Member Functions Documentation

ConstructL(const CCMSIssuerAndSerialNumber &)

IMPORT_C voidConstructL(const CCMSIssuerAndSerialNumber &aIssuerAndSerialNumber)[protected]

Protected construction to allow derivation

Parameters

const CCMSIssuerAndSerialNumber & aIssuerAndSerialNumber

ConstructL(const TDesC8 &)

IMPORT_C voidConstructL(const TDesC8 &aSubjectKeyIdentifier)[protected]

Protected construction to allow derivation

Parameters

const TDesC8 & aSubjectKeyIdentifier

ConstructL(const CCMSOriginatorPublicKey &)

IMPORT_C voidConstructL(const CCMSOriginatorPublicKey &aOriginatorKey)[protected]

Protected construction to allow derivation

Parameters

const CCMSOriginatorPublicKey & aOriginatorKey

DecodeL(const TDesC8 &)

voidDecodeL(const TDesC8 &aRawData)
From MCMSModule
Since
2.8

Parameters

const TDesC8 & aRawDataraw-data to be parsed in this instance

DeleteOldValueAndChangeTypeL(TType)

voidDeleteOldValueAndChangeTypeL(TTypeaNewType)[private]

Deletes old value and changes the type of the choice.

Parameters

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

EncodeL(HBufC8 *&)

voidEncodeL(HBufC8 *&aResult)const
From MCMSModule
Since
2.8

Parameters

HBufC8 *& aResultAllocates 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 & aIssuerAndSerialNumberidentifies 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 & aSubjectKeyIdentifierX.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 & aOriginatorKeyincludes 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 voidSetIssuerAndSerialNumberL(const CCMSIssuerAndSerialNumber &aIssuerAndSerialNumber)
Setter for IssuerAndSerialNumber. Create a copy of the parameters.
Since
2.8

Parameters

const CCMSIssuerAndSerialNumber & aIssuerAndSerialNumberidentifies sender's certificate

SetOriginatorKeyL(const CCMSOriginatorPublicKey &)

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

Parameters

const CCMSOriginatorPublicKey & aOriginatorKeyincludes algorithm identifier and public key

SetSubjectKeyIdentifierL(const TDesC8 &)

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

Parameters

const TDesC8 & aSubjectKeyIdentifierX.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 TTypeType()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]