![Symbian Developer Library](../../../../a_stock/images/mainheading.gif)
![]() |
![]() |
|
class CSignedObject : public CBase;
Base class for certificates.
CBase
-
Base class for all classes to be instantiated on the heap.
CSignedObject
- Base class for certificates.
Defined in CSignedObject
:
DataElementEncoding(const TUint)const
Gets the encoded data for the specified encoded data element, in the (to be sign...Encoding()const
Gets the entire encoding.ExternalizeL(RWriteStream &)const
Externalises the encoding of the entire object to a write stream.Fingerprint()const
Gets the fingerprint.InternalizeL(RReadStream &)
Internalises the encoded object from a read stream.SetParametersL(const CSigningKeyParameters &)
Sets the signing key parameters.Signature()const
Gets the digital signature.SignedDataL()const
Gets the signed data.SigningAlgorithm()const
Gets the signing algorithm ID used.VerifySignatureL(const TDesC8 &)const
Verifies a signature using the specified encoded key.VerifySignatureL(const TDesC8 &,const TDesC8 &)const
Verifies a signature using the specified encoded key and hash.iEncoding
A heap descriptor representing the entire encoding. iFingerprint
The fingerprint.iKeyFactory
A pointer to a key factory object. iParameters
The signing key parameters iSignature
The digital signature. iSigningAlgorithm
The signing algorithm ID. ~CSignedObject()
Destructor.Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...IMPORT_C TBool VerifySignatureL(const TDesC8 &aEncodedKey) const;
Verifies a signature using the specified encoded key.
|
|
IMPORT_C TBool VerifySignatureL(const TDesC8 &aEncodedKey, const TDesC8 &aHash) const;
Verifies a signature using the specified encoded key and hash.
|
|
IMPORT_C const TPtrC8 Signature() const;
Gets the digital signature.
|
IMPORT_C virtual const TPtrC8 SignedDataL() const=0;
Gets the signed data.
|
IMPORT_C const TPtrC8 Fingerprint() const;
Gets the fingerprint.
The fingerprint returned is the SHA1 hash of the encoding of the entire object.
|
IMPORT_C const TPtrC8 Encoding() const;
Gets the entire encoding.
|
IMPORT_C const CSigningAlgorithmIdentifier& SigningAlgorithm() const;
Gets the signing algorithm ID used.
|
IMPORT_C virtual void ExternalizeL(RWriteStream &aStream) const;
Externalises the encoding of the entire object to a write stream.
The fingerprint and the signed data can be regenerated after restoration.
The presence of this function means that the standard templated operator<<(RWriteStream &,const T &)
can be used to externalise objects of this class.
|
IMPORT_C virtual void InternalizeL(RReadStream &aStream)=0;
Internalises the encoded object from a read stream.
The class makes use of a specification-specific parser class for extracting the various elements, that is provided by a subclass of CSignedObject. For this reason this function is pure virtual.
The presence of this function means that the standard templated operator>>(RReadStream &,T &)
can be used to internalise objects of this class.
|
IMPORT_C void SetParametersL(const CSigningKeyParameters &aParameters);
Sets the signing key parameters.
|
IMPORT_C virtual const TPtrC8* DataElementEncoding(const TUint aIndex) const=0;
Gets the encoded data for the specified encoded data element, in the (to be signed) tbsCertificate data structure, of the signed object.
|
|
protected: HBufC8 * iFingerprint;
The fingerprint.
The SHA1 hash of the encoding of the entire object.
protected: CSigningAlgorithmIdentifier * iSigningAlgorithm;
The signing algorithm ID.