#include <cctcertinfo.h>
Link against: ctframework.lib
| class CCTCertInfo : protected CBase, public MCTTokenObject, public MCertInfo |
| Protected Member Functions | |
|---|---|
| virtual | ~CCTCertInfo() |
Encapsulates information about a stored certificate.
Objects of this type are usually returned by a certificate store, to allow a client to query the contents of the store.
Note that these objects are normally constructed by certificate stores, not by clients.
| IMPORT_C | ~CCTCertInfo | ( | ) | [protected, virtual] |
| IMPORT_C TCertificateFormat | CertificateFormat | ( | ) | const |
Gets the certificate format.
| IMPORT_C TCertificateOwnerType | CertificateOwnerType | ( | ) | const |
Gets the owner type.
| IMPORT_C TCTTokenObjectHandle | Handle | ( | ) | const [virtual] |
Reimplemented from MCTTokenObject::Handle()const
Gets a handle for the object.
The primary purpose of the handle is to allow token objects to be 'passed' between processes.
See also: TCTTokenObjectHandle
| IMPORT_C TBool | IsDeletable | ( | ) | const |
Whether the certificate is deletable.
| IMPORT_C const TDesC8 * | IssuerHash | ( | ) | const |
Reimplemented from MCertInfo::IssuerHash()const
Gets the hash of the issuer's DN.
| IMPORT_C const TKeyIdentifier & | IssuerKeyId | ( | ) | const |
Gets the issuer key ID.
| const TDesC & | Label | ( | ) | const [virtual] |
Reimplemented from MCTTokenObject::Label()const
| IMPORT_C CCTCertInfo * | NewL | ( | const CCTCertInfo & | aCertInfo | ) | [static] |
Construction -- Note that these objects are normally constructed by certificate stores, not by clients.
Creates the certificate information object by copying from an existing object.
| Parameters | |
|---|---|
| aCertInfo | The source certificate information. |
| Leave Codes | |
|---|---|
| KErrNoMemory | There is no memory to construct it. |
| IMPORT_C CCTCertInfo * | NewL | ( | const TDesC & | aLabel, |
| TCertificateFormat | aFormat, | |||
| TCertificateOwnerType | aCertificateOwnerType, | |||
| TInt | aSize, | |||
| const TKeyIdentifier * | aSubjectKeyId, | |||
| const TKeyIdentifier * | aIssuerKeyId, | |||
| MCTToken & | aToken, | |||
| TInt | aCertificateId, | |||
| TBool | aDeletable, | |||
| const TDesC8 * | aIssuerHash = NULL | |||
| ) | [static] | |||
Creates the certificate information object from its constituent parts.
| Parameters | |
|---|---|
| aLabel | The certificate's label. |
| aFormat | The certificate's format. |
| aCertificateOwnerType | The owner type. |
| aSize | The size of the certificate. |
| aSubjectKeyId | The subject key ID. |
| aIssuerKeyId | The issuer key ID. |
| aToken | The token that the certificate is within. |
| aCertificateId | The ID within the object handle. |
| aDeletable | The certificate is deletable. |
| aIssuerHash | The hash of the DN of the issuer. |
| Leave Codes | |
|---|---|
| KErrNoMemory | There is no memory to construct it. |
| IMPORT_C CCTCertInfo * | NewL | ( | const TDesC & | aLabel, |
| TCertificateFormat | aFormat, | |||
| TCertificateOwnerType | aCertificateOwnerType, | |||
| TInt | aSize, | |||
| const TKeyIdentifier * | aSubjectKeyId, | |||
| const TKeyIdentifier * | aIssuerKeyId, | |||
| MCTToken & | aToken, | |||
| TInt | aCertificateId | |||
| ) | [static] | |||
Creates the certificate information object from its constituent parts.
| Parameters | |
|---|---|
| aLabel | The certificate's label. |
| aFormat | The certificate's format. |
| aCertificateOwnerType | The owner type. |
| aSize | The size of the certificate. |
| aSubjectKeyId | The subject key ID. |
| aIssuerKeyId | The issuer key ID. |
| aToken | The token that the certificate is within. |
| aCertificateId | The ID within the object handle. |
| Leave Codes | |
|---|---|
| KErrNoMemory | There is no memory to construct it. |
| IMPORT_C CCTCertInfo * | NewL | ( | RReadStream & | aStream, |
| MCTToken & | aToken | |||
| ) | [static] | |||
Creates the certificate information object by internalising a previously externalised one.
See also: ExternalizeL InternalizeL
| Parameters | |
|---|---|
| aStream | The stream from which the object is to be internalised. |
| aToken | The token that it is within. |
| Leave Codes | |
|---|---|
| KErrNoMemory | There is no memory to construct it. |
| IMPORT_C CCTCertInfo * | NewLC | ( | const CCTCertInfo & | aCertInfo | ) | [static] |
Creates the certificate information object by copying from an existing object, and puts a pointer to the new object onto the cleanup stack.
| Parameters | |
|---|---|
| aCertInfo | The source certificate information. |
| Leave Codes | |
|---|---|
| KErrNoMemory | There is no memory to construct it. |
| IMPORT_C CCTCertInfo * | NewLC | ( | const TDesC & | aLabel, |
| TCertificateFormat | aFormat, | |||
| TCertificateOwnerType | aCertificateOwnerType, | |||
| TInt | aSize, | |||
| const TKeyIdentifier * | aSubjectKeyId, | |||
| const TKeyIdentifier * | aIssuerKeyId, | |||
| MCTToken & | aToken, | |||
| TInt | aCertificateId, | |||
| TBool | aDeletable, | |||
| const TDesC8 * | aIssuerHash = NULL | |||
| ) | [static] | |||
Creates the certificate information object from its constituent parts, and puts a pointer to the new object onto the cleanup stack.
| Parameters | |
|---|---|
| aLabel | The certificate's label. |
| aFormat | The certificate's format. |
| aCertificateOwnerType | The owner type. |
| aSize | The size of the certificate. |
| aSubjectKeyId | The subject key ID. |
| aIssuerKeyId | The issuer key ID. |
| aToken | The token that the certificate is within. |
| aCertificateId | The ID within the object handle. |
| aDeletable | The certificate is deletable. |
| aIssuerHash | The hash of the issuer's DN. |
| Leave Codes | |
|---|---|
| KErrNoMemory | There is no memory to construct it. |
| IMPORT_C CCTCertInfo * | NewLC | ( | const TDesC & | aLabel, |
| TCertificateFormat | aFormat, | |||
| TCertificateOwnerType | aCertificateOwnerType, | |||
| TInt | aSize, | |||
| const TKeyIdentifier * | aSubjectKeyId, | |||
| const TKeyIdentifier * | aIssuerKeyId, | |||
| MCTToken & | aToken, | |||
| TInt | aCertificateId | |||
| ) | [static] | |||
Creates the certificate information object from its constituent parts, and puts a pointer to the new object onto the cleanup stack.
| Parameters | |
|---|---|
| aLabel | The certificate's label. |
| aFormat | The certificate's format. |
| aCertificateOwnerType | The owner type. |
| aSize | The size of the certificate. |
| aSubjectKeyId | The subject key ID. |
| aIssuerKeyId | The issuer key ID. |
| aToken | The token that the certificate is within. |
| aCertificateId | The ID within the object handle. |
| Leave Codes | |
|---|---|
| KErrNoMemory | There is no memory to construct it. |
| IMPORT_C CCTCertInfo * | NewLC | ( | RReadStream & | aStream, |
| MCTToken & | aToken | |||
| ) | [static] | |||
Creates the certificate information object, by internalising a previously externalised one, and puts a pointer to the new object onto the cleanup stack.
See also: ExternalizeL InternalizeL
| Parameters | |
|---|---|
| aStream | The stream from which the object is to be internalised. |
| aToken | The token that it is within. |
| Leave Codes | |
|---|---|
| KErrNoMemory | There is no memory to construct it. |
| IMPORT_C void | SetCertificateId | ( | TInt | aCertId | ) |
Sets the certificate Id.
| Parameters | |
|---|---|
| aCertId | The certificate Id. |
| IMPORT_C TInt | Size | ( | ) | const |
Gets the size of the certificate.
Note that this function must be called so that the correct size of descriptor can be allocated when retrieving the certificate (with MCertStore::Retrieve()).
| IMPORT_C const TKeyIdentifier & | SubjectKeyId | ( | ) | const |
Gets the subject key ID.
| MCTToken & | Token | ( | ) | const [virtual] |
Reimplemented from MCTTokenObject::Token()const
| TUid | Type | ( | ) | const [virtual] |
Reimplemented from MCTTokenObject::Type()const
Gets a UID representing the type of the token object.
The function overrides MCTTokenObject::Type().
The meanings of possible UIDs should be documented in the documentation for the interface that returns them.
See also: MCTTokenObject::Type()
| IMPORT_C TBool | operator== | ( | const CCTCertInfo & | aCertInfo | ) | const |
Compares this certificate information object with a specified Certificate Information object for equality.
| Parameters | |
|---|---|
| aCertInfo | The certificate information object to be compared. |