os/security/authorisation/userpromptservice/policies/inc/promptrequest.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of the License "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description: 
sl@0
    15
*
sl@0
    16
*/
sl@0
    17
sl@0
    18
sl@0
    19
/**
sl@0
    20
 @file
sl@0
    21
 @publishedPartner
sl@0
    22
 @released 
sl@0
    23
*/
sl@0
    24
sl@0
    25
#ifndef PROMPTREQUEST_H
sl@0
    26
#define PROMPTREQUEST_H
sl@0
    27
sl@0
    28
#include <e32base.h>
sl@0
    29
#include <e32cmn.h>
sl@0
    30
#include <e32std.h>
sl@0
    31
sl@0
    32
#include <ups/upstypes.h>
sl@0
    33
sl@0
    34
namespace UserPromptService
sl@0
    35
	{
sl@0
    36
sl@0
    37
	/** 
sl@0
    38
	 The data provided by the system server to the User Prompt Service in an Authorise request.
sl@0
    39
	 */
sl@0
    40
	NONSHARABLE_CLASS(CPromptRequest) : public CBase
sl@0
    41
		{
sl@0
    42
	public:				
sl@0
    43
		IMPORT_C static CPromptRequest* NewL(
sl@0
    44
			const TSecureId& aClientSid, const TVendorId& aClientVid, const TThreadId& aClientThreadId, TProcessId &aClientProcessId,
sl@0
    45
			const TSecureId& aServerSid, const TServiceId& aServiceId, RBuf& aDestination, RBuf8& aOpaqueData, 
sl@0
    46
			TBool aSecurityResult);
sl@0
    47
sl@0
    48
		IMPORT_C static CPromptRequest* NewLC(
sl@0
    49
			const TSecureId& aClientSid, const TVendorId& aClientVid, const TThreadId& aClientThreadId, TProcessId &aClientProcessId,
sl@0
    50
			const TSecureId& aServerSid, const TServiceId& aServiceId, RBuf& aDestination, RBuf8& aOpaqueData, 
sl@0
    51
			TBool aSecurityResult);
sl@0
    52
sl@0
    53
		IMPORT_C const TSecureId& ClientSid() const;
sl@0
    54
		IMPORT_C TBool IsClientSidProtected() const;		
sl@0
    55
		IMPORT_C const TVendorId& ClientVid() const;
sl@0
    56
		IMPORT_C const TSecureId& ServerSid() const;
sl@0
    57
		IMPORT_C const TServiceId& ServiceId() const;
sl@0
    58
		IMPORT_C const TDesC& Destination() const;
sl@0
    59
		IMPORT_C const TDesC8& OpaqueData() const;
sl@0
    60
		IMPORT_C const TThreadId& ClientThreadId() const;
sl@0
    61
		IMPORT_C const TProcessId& ClientProcessId() const;
sl@0
    62
		IMPORT_C TBool SecurityResult() const;
sl@0
    63
sl@0
    64
		~CPromptRequest();
sl@0
    65
	private:
sl@0
    66
	
sl@0
    67
	CPromptRequest(	const TSecureId& aClientSid, const TVendorId& aClientVid, const TThreadId& aClientThreadId, TProcessId &aClientProcessId,
sl@0
    68
		const TSecureId& aServerSid, const TServiceId& aServiceId, 
sl@0
    69
		RBuf& aDestination, RBuf8& aOpaqueData, 
sl@0
    70
		TBool aSecurityResult);				
sl@0
    71
sl@0
    72
		TSecureId iClientSid;		///< The secure id of the client process
sl@0
    73
		TVendorId iClientVid;		///< The vendor id of the client process
sl@0
    74
		TThreadId iClientThreadId;	///< The thread id of the client requesting the service
sl@0
    75
		TProcessId iClientProcessId; ///< The process id of the client requesting the service
sl@0
    76
		
sl@0
    77
		TSecureId iServerSid;		///< The secure id of the system server
sl@0
    78
		TServiceId iServiceId;		///< The ID of the server requested
sl@0
    79
		
sl@0
    80
		RBuf iDestination;			///< The destination e.g. the Internet Access Point
sl@0
    81
		RBuf8 iOpaqueData;			///< Opaque data 
sl@0
    82
		TBool iSecurityResult;		/// Whether the client pased the system server's security check.
sl@0
    83
		};
sl@0
    84
	}	
sl@0
    85
sl@0
    86
#endif // PROMPTREQUEST_H
sl@0
    87