os/security/cryptoservices/certificateandkeymgmt/certstore/unifiedcertstoreworkingvars.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 * CUnifiedCertStoreWorkingVars class implementation
    16 *
    17 */
    18 
    19 
    20 /**
    21  @file 
    22  @internalComponent 
    23 */
    24  
    25 #include <e32base.h>
    26 #include <mctwritablecertstore.h>
    27 class CSHA1;
    28 class CCertificate;
    29 class CX500DistinguishedName;
    30 
    31 NONSHARABLE_CLASS(CUnifiedCertStoreWorkingVars) : public CBase
    32 	{
    33 public:
    34 	CUnifiedCertStoreWorkingVars();
    35 	virtual ~CUnifiedCertStoreWorkingVars();
    36 
    37 public:
    38 	/**
    39 	 * This stores the list of Token Types that support the
    40 	 * writable cert store interface.
    41 	 * Used while initializing the store.
    42 	 */
    43 	RCPointerArray<CCTTokenTypeInfo> iWritableTokenTypes;
    44 	/**
    45 	 * This stores the list of Token Types that support the
    46 	 * readable cert store interface.
    47 	 * Used while initializing the store.
    48 	 */
    49 	RCPointerArray<CCTTokenTypeInfo> iReadOnlyTokenTypes;
    50 
    51 	/**
    52 	 * Used to point to the array given as argument when listing certificates.
    53 	 */
    54 	RMPointerArray<CCTCertInfo>* iCertInfos;
    55 	/**
    56 	 * Used to point to the filter given as argument when listing certificates.
    57 	 */
    58 	const CCertAttributeFilter* iFilter;
    59 
    60 	/**
    61 	 * Used to point to the array of applications given as argument when doing 
    62 	 * the following operations :
    63 	 * - Applications
    64 	 * - SetApplicability
    65 	 */
    66 	RArray<TUid>* iApplications;
    67 
    68 	/**
    69 	 * Used to point to the certificate info given as argument when doing the following
    70 	 * operations :
    71 	 * - Applications
    72 	 * - IsApplicable
    73 	 * - Trusted
    74 	 * - Retrieve
    75 	 * - Remove
    76 	 * - SetApplicability
    77 	 * - SetTrust
    78 	 */
    79 	const CCTCertInfo* iCertInfo;
    80 
    81 	/**
    82 	 * This is used as an index for 
    83 	 * - the iWritableTokenTypes array when we are initializing the store.
    84 	 * - the iReadOnlyTokenTypes array when we are initializing the store.
    85 	 */
    86 	TInt iIndex;
    87 
    88 	/** The first returned certificate to be added to the array during
    89 	 *  a list, or the cert whose issuer DN is currently being compared. */
    90 	TInt iCertIndex;
    91 
    92 	/** The required issuer name for a list. */
    93 	RPointerArray<TDesC8> iIssuerNames;
    94 	/** The issuer names in parsed format */
    95 	RPointerArray<CX500DistinguishedName> iParsedIssuerNames;
    96 	/** Hashes of issuer names */
    97 	RPointerArray<HBufC8> iHashedIssuerNames;
    98 
    99 	/** A hash of the issuer DN. Used for comparing DNs in URL certificates */
   100 	CSHA1* iIssuerHash;
   101 
   102 	/** A descriptor used for storing certs while returning them as 
   103 		CCertificate objects */
   104 	HBufC8* iCertDesC;
   105 	/** A pointer to the modifiable descriptor for returning the 
   106 	    CCertificate objects - normally points to to iCertDesC */
   107 	TPtr8   iCertDes;  
   108 	
   109 	/** Pointer to returned certificate pointer */
   110 	CCertificate** iReturnedCert;
   111 
   112 	/** Type of the certificate being retrieved */
   113 	TCertificateFormat iCertType;
   114 	};