CCMSSignerInfo Class Reference
class CCMSSignerInfo : public CCMSSequence
|
SignerInfo module
SignerInfo ::= SEQUENCE { version CMSVersion, sid SignerIdentifier, digestAlgorithm DigestAlgorithmIdentifier, signedAttrs [0] IMPLICIT SignedAttributes OPTIONAL, signatureAlgorithm SignatureAlgorithmIdentifier, signature SignatureValue, unsignedAttrs [1] IMPLICIT UnsignedAttributes OPTIONAL }
SignerIdentifier ::= CHOICE { issuerAndSerialNumber IssuerAndSerialNumber, subjectKeyIdentifier [0] SubjectKeyIdentifier }
Private Attributes
|
CSignerInfoData *
|
iData
|
MCMSSignerInfoExtension *
|
iReserved
|
Constructor & Destructor Documentation
CCMSSignerInfo()
IMPORT_C
|
CCMSSignerInfo
|
(
|
)
|
[protected]
|
~CCMSSignerInfo()
~CCMSSignerInfo
|
(
|
)
|
[virtual]
|
Member Functions Documentation
BaseConstructL(const TDesC8 &)
void
|
BaseConstructL
|
(
|
const
TDesC8
&
|
aMessageDigest
|
)
|
[protected, virtual]
|
CMSVersion()
IMPORT_C
TInt
|
CMSVersion
|
(
|
)
|
const
|
Getter for Version
-
Since
-
2,8
ConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &)
IMPORT_C void
|
ConstructL
|
(
|
const
TDesC8
&
|
aCertificateUrl,
|
|
const
TDesC8
&
|
aSubjectKeyID,
|
|
const
TDesC8
&
|
aMessageDigest
|
|
)
|
[protected]
|
Protected construction to allow derivation
ConstructL(const CCMSX509Certificate &, const TDesC8 &)
Protected construction to allow derivation
CreateCertificateUrlLC(const TDesC8 &)
Creates certificate url attribute
Parameters
const
TDesC8
& aCertificateUrl
|
|
DecodeAttributesL(const TDesC8 &, CArrayPtrFlat< CCMSAttribute > *)
Decodes attributes to array
DecodeL(const TDesC8 &)
void
|
DecodeL
|
(
|
const
TDesC8
&
|
aRawData
|
)
|
|
Parameters
const
TDesC8
& aRawData
|
raw-data to be parsed in this instance
|
DigestAlgorithmIdentifier()
Getter for DigestAlgorithmIdentifier Default value is SHA-1
-
Since
-
2,8
IssuerAndSerialNumber()
Getter for IssuerAndSerialNumber This will be present when normal certificate is used
-
Since
-
2,8
NONSHARABLE_CLASS(CSignerInfoData)
NONSHARABLE_CLASS
|
(
|
CSignerInfoData
|
|
)
|
[private, inline]
|
NewL()
Two-phased constructor. NOTE: Encrypt will leave with KErrBadDescriptor if valid Attribute Type has not setted.
NewL(const CCMSX509Certificate &, const TDesC8 &)
Two-phased constructor. Takes copy of the both type and values.
NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &)
Two-phased constructor. Takes copy of the both type and values.
Parameters
const
TDesC8
& aCertificateUrl
|
Used certificate url
|
const
TDesC8
& aSubjectKeyID
|
Subject Key ID
|
const
TDesC8
& aMessageDigest
|
Message Digest value
|
SetCertificateL(const CCMSX509Certificate &)
SetCertificateUrlL(const TDesC8 &, const TDesC8 &)
IMPORT_C void
|
SetCertificateUrlL
|
(
|
const
TDesC8
&
|
aCertificateUrl,
|
|
const
TDesC8
&
|
aSubjectKeyIdentifier
|
|
)
|
|
Getter for SubjectKeyIdentifier
-
Since
-
2,8
Parameters
const
TDesC8
& aCertificateUrl
|
certificate url to be set
|
const
TDesC8
& aSubjectKeyIdentifier
|
SubjectKeyIdentifier to be set
|
SetDigestAlgorithmIdentifier(CCMSX509AlgorithmIdentifier &)
Setter for DigestAlgorithmIdentifier Transfers ownership
-
Since
-
2,8
SetSignatureAlgorithmIdentifier(CCMSX509AlgorithmIdentifier &)
Setter for SignatureAlgorithmIdentifier Transfers ownership
-
Since
-
2,8
SetSignatureValueL(const TDesC8 &)
IMPORT_C void
|
SetSignatureValueL
|
(
|
const
TDesC8
&
|
aSignatureValue
|
)
|
|
Setter for SignatureValue
-
Since
-
2,8
Parameters
const
TDesC8
& aSignatureValue
|
Signature value to be set
|
SetSignedAttributesL(const TDesC &, const TDesC8 &, const TTime &, const TDesC8 *)
IMPORT_C void
|
SetSignedAttributesL
|
(
|
const
TDesC
&
|
aContentType,
|
|
const
TDesC8
&
|
aMessageDigest,
|
|
const
TTime
&
|
aSigningTime,
|
|
const
TDesC8
*
|
aCertHash
|
|
)
|
|
Setter for Signed attributes Support for ContentType, MessageDigest, SigningTime and SigningCert If some of the parameters are not wanted to add use KNullDesC or KNullDesC8
-
Since
-
2,8
Parameters
const
TDesC
& aContentType
|
ContentType in OID form, e.g. "1.2.840.113549.1.7.1"
|
const
TDesC8
& aMessageDigest
|
Message Digest
|
const
TTime
& aSigningTime
|
In most cases current time
|
const
TDesC8
* aCertHash
|
Certificate hash
|
SetUnsignedAttributesL(CArrayPtrFlat< CCMSAttribute > &)
Setter for Unsigned attributes Transfers ownership
-
Since
-
2,8
SignatureAlgorithmIdentifier()
Getter for SignatureAlgorithmIdentifier Default value is RSA
-
Since
-
2,8
SignatureValue()
IMPORT_C const
TDesC8
&
|
SignatureValue
|
(
|
)
|
const
|
Getter for SignatureValue
-
Since
-
2,8
SignedAttributes()
Getter for SignedAttributes
-
Since
-
2,8
SignedAttributesEncodedL()
IMPORT_C
HBufC8
*
|
SignedAttributesEncodedL
|
(
|
)
|
const
|
Gets signedAttributes in encoded form, with SET OF tag instead of [0]. This data is supposed to be signed. since 3.0
SubjectKeyIdentifier()
IMPORT_C const
TDesC8
*
|
SubjectKeyIdentifier
|
(
|
)
|
const
|
Getter for SubjectKeyIdentifier This will be present only if certificate url is used
-
Since
-
2,8
UnsignedAttributes()
Getter for UnsignedAttributes
Member Data Documentation
CSignerInfoData * iData
CSignerInfoData *
|
iData
|
[private]
|
MCMSSignerInfoExtension * iReserved
MCMSSignerInfoExtension *
|
iReserved
|
[private]
|
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.