class CCMSAuthenticatedData : public CCMSSequence |
AuthenticatedData type module
ASN.1 Definition:
AuthenticatedData ::= SEQUENCE { version CMSVersion, originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL, recipientInfos RecipientInfos, macAlgorithm MessageAuthenticationCodeAlgorithm, digestAlgorithm [1] DigestAlgorithmIdentifier OPTIONAL, encapContentInfo EncapsulatedContentInfo, authenticatedAttributes [2] IMPLICIT AuthAttributes OPTIONAL, mac MessageAuthenticationCode, unauthenticatedAttributes [3] IMPLICIT UnauthAttributes OPTIONAL }
AuthAttributes ::= SET SIZE (1..MAX) OF Attribute UnauthAttributes ::= SET SIZE (1..MAX) OF Attribute
RecipientInfos ::= SET OF RecipientInfo
MessageAuthenticationCode ::= OCTET STRING
MessageAuthenticationCodeAlgorithm ::= AlgorithmIdentifier DigestAlgorithmIdentifier ::= AlgorithmIdentifier
Protected Member Functions | |
---|---|
CCMSAuthenticatedData() | |
IMPORT_C void | ConstructL() |
IMPORT_C void | ConstructL(CArrayPtr< CCMSRecipientInfo > *, CCMSX509AlgorithmIdentifier *, CCMSEncapsulatedContentInfo *, const TDesC8 &) |
Private Member Functions | |
---|---|
CArrayPtrFlat< CCMSAttribute > * | DecodeAttributesL(TASN1DecGeneric *) |
NONSHARABLE_CLASS(CAuthenticatedDataData) |
Private Attributes | |
---|---|
CAuthenticatedDataData * | iData |
MCMSAuthenticatedDataExtension * | iReserved |
IMPORT_C const CArrayPtr< CCMSAttribute > * | AuthenticatedAttributes | ( | ) | const |
IMPORT_C void | ConstructL | ( | CArrayPtr< CCMSRecipientInfo > * | aRecipientInfos, |
CCMSX509AlgorithmIdentifier * | aMacAlgorithm, | |||
CCMSEncapsulatedContentInfo * | aEncapContentInfo, | |||
const TDesC8 & | aMac | |||
) | [protected] |
Protected construction to allow derivation
CArrayPtr< CCMSRecipientInfo > * aRecipientInfos | |
CCMSX509AlgorithmIdentifier * aMacAlgorithm | |
CCMSEncapsulatedContentInfo * aEncapContentInfo | |
const TDesC8 & aMac |
CArrayPtrFlat< CCMSAttribute > * | DecodeAttributesL | ( | TASN1DecGeneric * | aAttributesDec | ) | [private] |
Decodes an attribute sequence.
TASN1DecGeneric * aAttributesDec |
void | DecodeL | ( | const TDesC8 & | aRawData | ) |
const TDesC8 & aRawData | raw-data to be parsed in this instance |
IMPORT_C const CCMSX509AlgorithmIdentifier * | DigestAlgorithm | ( | ) | const |
IMPORT_C const CCMSEncapsulatedContentInfo & | EncapContentInfo | ( | ) | const |
IMPORT_C const CCMSX509AlgorithmIdentifier & | MacAlgorithm | ( | ) | const |
NONSHARABLE_CLASS | ( | CAuthenticatedDataData | ) | [private, inline] |
Container for the actual data
CAuthenticatedDataData |
IMPORT_C CCMSAuthenticatedData * | NewLC | ( | ) | [static] |
Two-phased constructor. NOTE: Encrypt will leave with KErrArgument if valid parameters are not set.
IMPORT_C CCMSAuthenticatedData * | NewLC | ( | CArrayPtr< CCMSRecipientInfo > * | aRecipientInfos, |
CCMSX509AlgorithmIdentifier * | aMacAlgorithm, | |||
CCMSEncapsulatedContentInfo * | aEncapContentInfo, | |||
const TDesC8 & | aMac | |||
) | [static] |
Two-phased constructor. Takes ownership of all parameters, except aMac which is copied. Leaves newly created instance in CleanupStack
CArrayPtr< CCMSRecipientInfo > * aRecipientInfos | |
CCMSX509AlgorithmIdentifier * aMacAlgorithm | |
CCMSEncapsulatedContentInfo * aEncapContentInfo | |
const TDesC8 & aMac |
IMPORT_C const CCMSOriginatorInfo * | OriginatorInfo | ( | ) | const |
IMPORT_C const CArrayPtr< CCMSRecipientInfo > & | RecipientInfos | ( | ) | const |
IMPORT_C void | SetAuthenticatedAttributesL | ( | CArrayPtr< CCMSAttribute > * | aAuthenticatedAttributes | ) |
CArrayPtr< CCMSAttribute > * aAuthenticatedAttributes | array of attributes. |
IMPORT_C void | SetDigestAlgorithmL | ( | CCMSX509AlgorithmIdentifier * | aDigestAlgorithm | ) |
CCMSX509AlgorithmIdentifier * aDigestAlgorithm | DigestAlgorithmIdentifier |
IMPORT_C void | SetEncapContentInfoL | ( | CCMSEncapsulatedContentInfo * | aEncapContentInfo | ) |
CCMSEncapsulatedContentInfo * aEncapContentInfo | EncapsulatedContentInfo. If this parameter is NULL, this method will leave with KErrArgument. |
IMPORT_C void | SetMacAlgorithmL | ( | CCMSX509AlgorithmIdentifier * | aMacAlgorithm | ) |
CCMSX509AlgorithmIdentifier * aMacAlgorithm | MessageAuthenticationCodeAlgorithm. If this parameter is null, this method leaves with KErrArgument. |
IMPORT_C void | SetMacL | ( | const TDesC8 & | aMac | ) |
const TDesC8 & aMac | MessageAuthenticationCode |
IMPORT_C void | SetOriginatorInfoL | ( | CCMSOriginatorInfo * | aOriginatorInfo | ) |
CCMSOriginatorInfo * aOriginatorInfo | OriginatorInfo |
IMPORT_C void | SetRecipientInfosL | ( | CArrayPtr< CCMSRecipientInfo > * | aRecipientInfos | ) |
CArrayPtr< CCMSRecipientInfo > * aRecipientInfos | array of RecipientInfos. There must be at least one element in the array, otherwise thois method will leave with KErrArgument |
IMPORT_C void | SetUnauthenticatedAttributesL | ( | CArrayPtr< CCMSAttribute > * | aUnauthenticatedAttributes | ) |
CArrayPtr< CCMSAttribute > * aUnauthenticatedAttributes |
IMPORT_C void | SetVersion | ( | TInt | aVersion | ) |
TInt aVersion | CMSVersion value |
IMPORT_C const CArrayPtr< CCMSAttribute > * | UnauthenticatedAttributes | ( | ) | const |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.