os/security/cryptomgmtlibs/cryptotokenfw/inc_interfaces/MCTCertApps.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2002-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 *
    16 */
    17 
    18 
    19 /**
    20  @file 
    21  @publishedAll
    22  @released
    23 */
    24  
    25 #ifndef __MCTCERTAPPS_H__
    26 #define __MCTCERTAPPS_H__
    27 
    28 #include <e32base.h>
    29 #include <f32file.h>
    30 #include <s32file.h>
    31 #include <ct/mcttokeninterface.h>
    32 
    33 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    34 #include <mctcertappinterface.h>
    35 #endif
    36 
    37 
    38 
    39 /**
    40  * Information about a certificate application.
    41  *
    42  * Certificate applications are used to represent classes of certificate use,
    43  * for example Software Install, TLS, WTLS, WMLScript, SignText, etc.
    44  *
    45  * CA Certificates are associated with zero or more applications, and this
    46  * information is used to determine which certificates are used when building
    47  * and validating certificate chains.
    48  *
    49  * An application is identified by a UID.  A TCertificateAppInfo contains this
    50  * and the name of the application.
    51  * 
    52  */
    53 class TCertificateAppInfo
    54 	{
    55 public:
    56 	IMPORT_C TCertificateAppInfo(const TUid& aUid, const TName& aName);
    57 	IMPORT_C TCertificateAppInfo& operator = (const TCertificateAppInfo& aClient);
    58 	IMPORT_C TCertificateAppInfo();
    59 	IMPORT_C const TUid& Id() const;
    60 	IMPORT_C const TName& Name() const;
    61 	IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
    62 	IMPORT_C void InternalizeL(RReadStream& aStream);
    63 
    64 private:
    65 	TUid iUid;                    
    66 	TName iName;
    67 	};
    68 
    69 
    70 #endif // __MCTCERTAPPS_H__