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 ()
void DecodeL (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 void SetEncryptedKeyL (const TDesC8 &)
IMPORT_C void SetIssuerAndSerialNumberL (const CCMSIssuerAndSerialNumber &)
IMPORT_C void SetSubjectKeyIdentifierL (const TDesC8 &)
IMPORT_C const TDesC8 * SubjectKeyIdentifier ()
CASN1EncBase * TaggedEncoderLC ()
Protected Member Functions
CCMSKeyTransRecipientInfo ( TInt )
IMPORT_C void ConstructL (const CCMSIssuerAndSerialNumber &, const CCMSX509AlgorithmIdentifier &, const TDesC8 &)
IMPORT_C void ConstructL (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_C CCMSKeyTransRecipientInfo ( TInt aVersion ) [protected]

C++ constructor.

Parameters

TInt aVersion

~CCMSKeyTransRecipientInfo()

~CCMSKeyTransRecipientInfo ( ) [virtual]

Destructor.

Member Functions Documentation

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

IMPORT_C void ConstructL ( 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 void ConstructL ( 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 &)

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

Parameters

const TDesC8 & aRawData raw-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 & aIssuerAndSerialNumber rid (RecipientIdentifier) value
const CCMSX509AlgorithmIdentifier & aKeyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier
const TDesC8 & aEncryptedKey EncryptedKey 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 & aSubjectKeyIdentifier rid (RecipientIdentifier) value
const CCMSX509AlgorithmIdentifier & aKeyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier
const TDesC8 & aEncryptedKey EncryptedKey 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 & aSubjectKeyIdentifier rid (RecipientIdentifier) value
const CCMSX509AlgorithmIdentifier & aKeyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier
const TDesC8 & aEncryptedKey EncryptedKey value

SetEncryptedKeyL(const TDesC8 &)

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

Parameters

const TDesC8 & aEncryptedKey EncryptedKey value.

SetIssuerAndSerialNumberL(const CCMSIssuerAndSerialNumber &)

IMPORT_C void SetIssuerAndSerialNumberL ( 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 & aIssuerAndSerialNumber IssuerAndSerialNumber value.

SetSubjectKeyIdentifierL(const TDesC8 &)

IMPORT_C void SetSubjectKeyIdentifierL ( 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 & aSubjectKeyIdentifier SubjectKeyIdentifier 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]