CCMSSignedData Class Reference
class CCMSSignedData : public CCMSSequence |
Attribute type module
ASN.1 Definition: SignedData ::= SEQUENCE { version CMSVersion, digestAlgorithms DigestAlgorithmIdentifiers, encapContentInfo EncapsulatedContentInfo, certificates [0] IMPLICIT CertificateSet OPTIONAL, crls [1] IMPLICIT CertificateRevocationLists OPTIONAL, signerInfos SignerInfos }
DigestAlgorithmIdentifiers ::= SET OF DigestAlgorithmIdentifier
SignerInfos ::= SET OF SignerInfo
Constructor & Destructor Documentation
CCMSSignedData()
IMPORT_C | CCMSSignedData | ( | ) | [protected] |
~CCMSSignedData()
~CCMSSignedData | ( | ) | [virtual] |
Member Functions Documentation
Certificates()
Getter for Certificate
Certificates is a collection of certificates. It is intended that the set of certificates be sufficient to contain chains from a recognized "root" or "top-level certification authority" to all of the signers in the signerInfos field. There may be more certificates than necessary, and there may be certificates sufficient to contain chains from two or more independent top- level certification authorities. There may also be fewer certificates than necessary, if it is expected that recipients have an alternate means of obtaining necessary certificates (e.g., from a previous set of certificates).
ConstructL()
IMPORT_C void | ConstructL | ( | ) | [protected] |
Protected construction to allow derivation
ConstructL(const CArrayPtr< CCMSX509AlgorithmIdentifier > &, const CCMSEncapsulatedContentInfo &, const CArrayPtr< CCMSSignerInfo > &, const CArrayPtr< CCMSCertificateChoices > *, const CArrayPtr< CCMSX509CertificateList > *)
Protected construction to allow derivation
DecodeL(const TDesC8 &)
void | DecodeL | ( | const TDesC8 & | aRawData | ) | |
Parameters
const TDesC8 & aRawData | raw-data to be parsed in this instance |
DigestAlgorithmIdentifiers()
Getter for DigestAlgorithmIdentifiers
DigestAlgorithms is a collection of message digest algorithm identifiers. There may be any number of elements in the collection, including zero. Each element identifies the message digest algorithm, along with any associated parameters, used by one or more signer. The collection is intended to list the message digest algorithms employed by all of the signers, in any order, to facilitate one-pass signature verification.
EncapsulatedContentInfo()
Getter for EncapsulatedContentInfo
EncapsulatedContentInfo is the signed content, consisting of a content type identifier and the content itself.
NewLC()
Two-phased constructor. NOTE: Encrypt will leave with KErrArgument if valid parameters are not set.
NewLC(const CArrayPtr< CCMSX509AlgorithmIdentifier > &, const CCMSEncapsulatedContentInfo &, const CArrayPtr< CCMSSignerInfo > &)
Two-phased constructor. Takes copy of all parameters. Leaves newly created instance in CleanupStack
NewLC(const CArrayPtr< CCMSX509AlgorithmIdentifier > &, const CCMSEncapsulatedContentInfo &, const CArrayPtr< CCMSSignerInfo > &, const CArrayPtr< CCMSCertificateChoices > *, const CArrayPtr< CCMSX509CertificateList > *)
Two-phased constructor. Same as above although takes only one value Leaves newly created instance in CleanupStack
RevokedCertificates()
Getter for RevokedCertificates
RevokedCertificates is a collection of certificate revocation lists (CRLs). It is intended that the set contain information sufficient to determine whether or not the certificates in the certificates field are valid, but such correspondence is not necessary. There may be more CRLs than necessary, and there may also be fewer CRLs than necessary.
SetCertificatesL(const CArrayPtr< CCMSCertificateChoices > *)
Setter for Certificates, takes copy
- Since
- 2.8
SetDigestAlgorithmIdentifiersL(const CArrayPtr< CCMSX509AlgorithmIdentifier > &)
Setter for DigestAlgorithmIdentifiers, takes copy
SetEncapsulatedContentInfoL(const CCMSEncapsulatedContentInfo &)
Setter for EncapsulatedContentInfo, takes copy
- Since
- 2.8
SetRevokedCertificatesL(const CArrayPtr< CCMSX509CertificateList > *)
Setter for RevokedCertificates, takes copy
- Since
- 2.8
SetSignerInfosL(const CArrayPtr< CCMSSignerInfo > &)
Setter for SignerInfos, takes copy
- Since
- 2.8
SignerInfos()
Getter for SignerInfos
SignerInfos is a collection of per-signer information. There may be any number of elements in the collection, including zero.
ValidateVersion()
void | ValidateVersion | ( | ) | [private] |
Finds out right version with following rules:
If no attribute certificates are present in the certificates field, the encapsulated content type is id-data, and all of the elements of SignerInfos are version 1, then the value of version shall be 1.
Alternatively, if attribute certificates are present, the encapsulated content type is other than id-data, or any of the elements of SignerInfos are version 3, then the value of version shall be 3.
Version()
IMPORT_C TInt | Version | ( | ) | const |
Getter for Version
Version is the syntax version number. If no attribute certificates are present in the certificates field, the encapsulated content type is id-data, and all of the elements of SignerInfos are version 1, then the value of version shall be 1. Alternatively, if attribute certificates are present, the encapsulated content type is other than id-data, or any of the elements of SignerInfos are version 3, then the value of version shall be 3.
Member Data Documentation
CArrayPtr< CCMSCertificateChoices > * iCertificates
CCMSEncapsulatedContentInfo * iContentInfo
CArrayPtr< CCMSX509AlgorithmIdentifier > * iDigestAlgorithmIdentifiers
MCMSSignedDataExtension * iReserved
MCMSSignedDataExtension * | iReserved | [private] |
CArrayPtr< CCMSX509CertificateList > * iRevokedCertificates
CArrayPtr< CCMSSignerInfo > * iSignerInfos
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.