epoc32/include/mctcertapps.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@2
     5
* under the terms of the License "Eclipse Public License v1.0"
williamr@2
     6
* which accompanies this distribution, and is available
williamr@2
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description: 
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
/**
williamr@2
    20
 @file 
williamr@4
    21
 @publishedAll
williamr@4
    22
 @released
williamr@2
    23
*/
williamr@2
    24
 
williamr@2
    25
#ifndef __MCTCERTAPPS_H__
williamr@2
    26
#define __MCTCERTAPPS_H__
williamr@2
    27
williamr@2
    28
#include <e32base.h>
williamr@2
    29
#include <f32file.h>
williamr@2
    30
#include <s32file.h>
williamr@2
    31
#include <ct/mcttokeninterface.h>
williamr@2
    32
williamr@4
    33
#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
williamr@4
    34
#include <mctcertappinterface.h>
williamr@4
    35
#endif
williamr@2
    36
williamr@4
    37
williamr@2
    38
williamr@2
    39
/**
williamr@2
    40
 * Information about a certificate application.
williamr@2
    41
 *
williamr@2
    42
 * Certificate applications are used to represent classes of certificate use,
williamr@2
    43
 * for example Software Install, TLS, WTLS, WMLScript, SignText, etc.
williamr@2
    44
 *
williamr@2
    45
 * CA Certificates are associated with zero or more applications, and this
williamr@2
    46
 * information is used to determine which certificates are used when building
williamr@2
    47
 * and validating certificate chains.
williamr@2
    48
 *
williamr@2
    49
 * An application is identified by a UID.  A TCertificateAppInfo contains this
williamr@2
    50
 * and the name of the application.
williamr@2
    51
 * 
williamr@2
    52
 */
williamr@2
    53
class TCertificateAppInfo
williamr@2
    54
	{
williamr@2
    55
public:
williamr@2
    56
	IMPORT_C TCertificateAppInfo(const TUid& aUid, const TName& aName);
williamr@2
    57
	IMPORT_C TCertificateAppInfo& operator = (const TCertificateAppInfo& aClient);
williamr@2
    58
	IMPORT_C TCertificateAppInfo();
williamr@2
    59
	IMPORT_C const TUid& Id() const;
williamr@2
    60
	IMPORT_C const TName& Name() const;
williamr@2
    61
	IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
williamr@2
    62
	IMPORT_C void InternalizeL(RReadStream& aStream);
williamr@2
    63
williamr@2
    64
private:
williamr@2
    65
	TUid iUid;                    
williamr@2
    66
	TName iName;
williamr@2
    67
	};
williamr@2
    68
williamr@2
    69
williamr@2
    70
#endif // __MCTCERTAPPS_H__