CCMSKeyTransRecipientInfo Class Reference

class CCMSKeyTransRecipientInfo : public CCMSRecipientInfo

KeyTransRecipientInfo type module

ASN.1 definition: KeyTransRecipientInfo ::= SEQUENCE { version CMSVersion, -- always set to 0 or 2 rid RecipientIdentifier, keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier, encryptedKey EncryptedKey }

RecipientIdentifier ::= CHOICE { issuerAndSerialNumber IssuerAndSerialNumber, subjectKeyIdentifier [0] SubjectKeyIdentifier }

cms.lib
Since
2.8

Inherits from

Public Member Functions
~CCMSKeyTransRecipientInfo()
voidDecodeL(const TDesC8 &)
CASN1EncBase *EncoderLC()
IMPORT_C const TDesC8 &EncryptedKey()
IMPORT_C const CCMSIssuerAndSerialNumber *IssuerAndSerialNumber()
IMPORT_C CCMSKeyTransRecipientInfo *NewL()
IMPORT_C CCMSKeyTransRecipientInfo *NewL(const CCMSIssuerAndSerialNumber &, const CCMSX509AlgorithmIdentifier &, const TDesC8 &)
IMPORT_C CCMSKeyTransRecipientInfo *NewL(const TDesC8 &, const CCMSX509AlgorithmIdentifier &, const TDesC8 &)
IMPORT_C CCMSKeyTransRecipientInfo *NewLC()
IMPORT_C CCMSKeyTransRecipientInfo *NewLC(const TDesC8 &, const CCMSX509AlgorithmIdentifier &, const TDesC8 &)
IMPORT_C voidSetEncryptedKeyL(const TDesC8 &)
IMPORT_C voidSetIssuerAndSerialNumberL(const CCMSIssuerAndSerialNumber &)
IMPORT_C voidSetSubjectKeyIdentifierL(const TDesC8 &)
IMPORT_C const TDesC8 *SubjectKeyIdentifier()
CASN1EncBase *TaggedEncoderLC()
Protected Member Functions
CCMSKeyTransRecipientInfo(TInt)
IMPORT_C voidConstructL(const CCMSIssuerAndSerialNumber &, const CCMSX509AlgorithmIdentifier &, const TDesC8 &)
IMPORT_C voidConstructL(const TDesC8 &, const CCMSX509AlgorithmIdentifier &, const TDesC8 &)
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()
CCMSRecipientInfo::AddKeyEncryptionAlgorithmL(CASN1EncSequence *)const
CCMSRecipientInfo::AddVersionL(CASN1EncSequence *)const
CCMSRecipientInfo::BaseConstructL(const CCMSX509AlgorithmIdentifier &)
CCMSRecipientInfo::CCMSRecipientInfo(TInt)
CCMSRecipientInfo::KeyEncryptionAlgorithm()const
CCMSRecipientInfo::SetKeyEncryptionAlgorithmL(const CCMSX509AlgorithmIdentifier &)
CCMSRecipientInfo::Version()const
CCMSRecipientInfo::~CCMSRecipientInfo()
CCMSSequence::CCMSSequence()
CCMSSequence::CreateDerEncodingL(CASN1EncBase *)
CCMSSequence::DecodeSequenceLC(const TDesC8 &)
CCMSSequence::DecodeSequenceLC(const TDesC8 &,TInt,TInt)
CCMSSequence::EncodeL(HBufC8 *&)const
Private Attributes
TDesC8 *iEncryptedKey
CCMSIssuerAndSerialNumber *iIssuerAndSerialNumber
TDesC8 *iSubjectKeyIdentifier
Inherited Attributes
CCMSRecipientInfo::iKeyEncryptionAlgorithm
CCMSRecipientInfo::iVersion

Constructor & Destructor Documentation

CCMSKeyTransRecipientInfo(TInt)

IMPORT_CCCMSKeyTransRecipientInfo(TIntaVersion)[protected]

C++ constructor.

Parameters

TInt aVersion

~CCMSKeyTransRecipientInfo()

~CCMSKeyTransRecipientInfo()[virtual]

Destructor.

Member Functions Documentation

ConstructL(const CCMSIssuerAndSerialNumber &, const CCMSX509AlgorithmIdentifier &, const TDesC8 &)

IMPORT_C voidConstructL(const CCMSIssuerAndSerialNumber &aIssuerAndSerialNumber,
const CCMSX509AlgorithmIdentifier &aKeyEncryptionAlgorithm,
const TDesC8 &aEncryptedKey
)[protected]

Protected construction to allow derivation

Parameters

const CCMSIssuerAndSerialNumber & aIssuerAndSerialNumber
const CCMSX509AlgorithmIdentifier & aKeyEncryptionAlgorithm
const TDesC8 & aEncryptedKey

ConstructL(const TDesC8 &, const CCMSX509AlgorithmIdentifier &, const TDesC8 &)

IMPORT_C voidConstructL(const TDesC8 &aSubjectKeyIdentifier,
const CCMSX509AlgorithmIdentifier &aKeyEncryptionAlgorithm,
const TDesC8 &aEncryptedKey
)[protected]

Protected construction to allow derivation

Parameters

const TDesC8 & aSubjectKeyIdentifier
const CCMSX509AlgorithmIdentifier & aKeyEncryptionAlgorithm
const TDesC8 & aEncryptedKey

DecodeL(const TDesC8 &)

voidDecodeL(const TDesC8 &aRawData)
From MCMSModule
Since
2.8

Parameters

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

EncoderLC()

CASN1EncBase *EncoderLC()const
From MCMSModule
Since
2.8

EncryptedKey()

IMPORT_C const TDesC8 &EncryptedKey()const
Getter for EncryptedKey
Since
2.8

IssuerAndSerialNumber()

IMPORT_C const CCMSIssuerAndSerialNumber *IssuerAndSerialNumber()const
Getter for IssuerAndSerialNumber. Ownership is not transferred.
Since
2,8

NewL()

IMPORT_C CCMSKeyTransRecipientInfo *NewL()[static]

Two-phased constructor.

NewL(const CCMSIssuerAndSerialNumber &, const CCMSX509AlgorithmIdentifier &, const TDesC8 &)

IMPORT_C CCMSKeyTransRecipientInfo *NewL(const CCMSIssuerAndSerialNumber &aIssuerAndSerialNumber,
const CCMSX509AlgorithmIdentifier &aKeyEncryptionAlgorithm,
const TDesC8 &aEncryptedKey
)[static]

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

Parameters

const CCMSIssuerAndSerialNumber & aIssuerAndSerialNumberrid (RecipientIdentifier) value
const CCMSX509AlgorithmIdentifier & aKeyEncryptionAlgorithmKeyEncryptionAlgorithmIdentifier
const TDesC8 & aEncryptedKeyEncryptedKey value

NewL(const TDesC8 &, const CCMSX509AlgorithmIdentifier &, const TDesC8 &)

IMPORT_C CCMSKeyTransRecipientInfo *NewL(const TDesC8 &aSubjectKeyIdentifier,
const CCMSX509AlgorithmIdentifier &aKeyEncryptionAlgorithm,
const TDesC8 &aEncryptedKey
)[static]

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

Parameters

const TDesC8 & aSubjectKeyIdentifierrid (RecipientIdentifier) value
const CCMSX509AlgorithmIdentifier & aKeyEncryptionAlgorithmKeyEncryptionAlgorithmIdentifier
const TDesC8 & aEncryptedKeyEncryptedKey value

NewLC()

IMPORT_C CCMSKeyTransRecipientInfo *NewLC()[static]

Two-phased constructor. Leaves the object in cleanup stack.

NewLC(const TDesC8 &, const CCMSX509AlgorithmIdentifier &, const TDesC8 &)

IMPORT_C CCMSKeyTransRecipientInfo *NewLC(const TDesC8 &aSubjectKeyIdentifier,
const CCMSX509AlgorithmIdentifier &aKeyEncryptionAlgorithm,
const TDesC8 &aEncryptedKey
)[static]

Two-phased constructor. Copies of the parameters are made. Leaves the object in cleanup stack.

Parameters

const TDesC8 & aSubjectKeyIdentifierrid (RecipientIdentifier) value
const CCMSX509AlgorithmIdentifier & aKeyEncryptionAlgorithmKeyEncryptionAlgorithmIdentifier
const TDesC8 & aEncryptedKeyEncryptedKey value

SetEncryptedKeyL(const TDesC8 &)

IMPORT_C voidSetEncryptedKeyL(const TDesC8 &aEncryptedKey)
Setter for EncryptedKey. Creates a copy of the parameters.
Since
2.8

Parameters

const TDesC8 & aEncryptedKeyEncryptedKey value.

SetIssuerAndSerialNumberL(const CCMSIssuerAndSerialNumber &)

IMPORT_C voidSetIssuerAndSerialNumberL(const CCMSIssuerAndSerialNumber &aIssuerAndSerialNumber)
Setter for IssuerAndSerialNumber. Creates a copy of the parameters. Note that any existing subjectKeyIdentifier value is deleted. Also version is set to 0.
Since
2.8

Parameters

const CCMSIssuerAndSerialNumber & aIssuerAndSerialNumberIssuerAndSerialNumber value.

SetSubjectKeyIdentifierL(const TDesC8 &)

IMPORT_C voidSetSubjectKeyIdentifierL(const TDesC8 &aSubjectKeyIdentifier)
Setter for subjectKeyIdentifier. Creates a copy of the parameters. Note that any existing IssuerAndSerialNumber value is deleted. Also version is set to 2.
Since
2.8

Parameters

const TDesC8 & aSubjectKeyIdentifierSubjectKeyIdentifier value.

SubjectKeyIdentifier()

IMPORT_C const TDesC8 *SubjectKeyIdentifier()const
Getter for subjectKeyIdentifier. Ownership is not transferred.
Since
2,8

TaggedEncoderLC()

CASN1EncBase *TaggedEncoderLC()const [virtual]
From CCMSRecipientInfo
Since
2.8

Member Data Documentation

TDesC8 * iEncryptedKey

TDesC8 *iEncryptedKey[private]

CCMSIssuerAndSerialNumber * iIssuerAndSerialNumber

CCMSIssuerAndSerialNumber *iIssuerAndSerialNumber[private]

TDesC8 * iSubjectKeyIdentifier

TDesC8 *iSubjectKeyIdentifier[private]