javacommons/security/inc/securitystoragedatadefs.h
changeset 21 2a9601315dfc
child 34 71c436fe3ce0
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*
       
     2 * Copyright (c) 2008 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 "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:  Defines constants for some of the security storage data
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SECURITYSTORAGEDATADEFS_H
       
    20 #define SECURITYSTORAGEDATADEFS_H
       
    21 
       
    22 /**
       
    23 * This header file defines the security storage data. This constants need
       
    24 * to be in sync with com.nokia.mj.impl.security.midp.common.UserSecuritySettings
       
    25 */
       
    26 
       
    27 // function groups
       
    28 const wchar_t* const NET_ACCESS_SETTINGS = L"Net Access";
       
    29 const wchar_t* const LOW_LEVEL_NET_ACCESS_SETTINGS = L"Low Level Net Access";
       
    30 const wchar_t* const MESSAGING_SETTINGS = L"Messaging";
       
    31 const wchar_t* const RESTRICTED_MESSAGING_SETTINGS = L"Restricted Messaging";
       
    32 const wchar_t* const CALL_CONTROL_SETTINGS = L"Call Control";
       
    33 const wchar_t* const LOCAL_CONNECTIVITY_SETTINGS = L"Local Connectivity";
       
    34 const wchar_t* const MULTIMEDIA_RECORDING_SETTINGS = L"Multimedia Recording";
       
    35 const wchar_t* const READ_USER_DATA_ACCESS_SETTINGS = L"Read User Data Access";
       
    36 const wchar_t* const WRITE_USER_DATA_ACCESS_SETTINGS = L"Write User Data Access";
       
    37 const wchar_t* const APPLICATION_AUTO_INVOCATION_SETTINGS = L"Application Auto Invocation";
       
    38 const wchar_t* const PHONE_CALL_SETTINGS = L"Phone Call";
       
    39 const wchar_t* const LOCATION_SETTINGS = L"Location";
       
    40 const wchar_t* const LANDMARK_SETTINGS = L"Landmark";
       
    41 const wchar_t* const SMART_CARD_COMMUNICATION_SETTINGS = L"Smart Card Communication";
       
    42 const wchar_t* const AUTHENTICATION_SETTINGS = L"Authentication";
       
    43 const wchar_t* const BROADCAST_SETTINGS = L"Broadcast";
       
    44 const wchar_t* const NFC_WRITE_ACCESS_SETTINGS = L"NFC Write Access";
       
    45 
       
    46 // interaction modes values
       
    47 const wchar_t* const ONESHOT_INTERACTION_MODE = L"1";
       
    48 const wchar_t* const SESSION_INTERACTION_MODE = L"2";
       
    49 const wchar_t* const BLANKET_INTERACTION_MODE = L"3";
       
    50 const wchar_t* const DENIED_INTERACTION_MODE = L"4";
       
    51 
       
    52 // security warnings modes values
       
    53 const wchar_t* const SECURITY_WARNINGS_USER_DEFINED_MODE = L"1";
       
    54 const wchar_t* const SECURITY_WARNINGS_DEFAULT_MODE = L"2";
       
    55 
       
    56 /**
       
    57 * Constants defined for different protection domain categories.
       
    58 *
       
    59 * IMPORTANT: These constants must be kept in sync with the constants defined
       
    60 *            on java inside com.nokia.mj.impl.rt.support.ApplicationInfo
       
    61 */
       
    62 const wchar_t* const MANUFACTURER_DOMAIN_CATEGORY             = L"MFD";
       
    63 const wchar_t* const IDENTIFIED_THIRD_PARTY_DOMAIN_CATEGORY   = L"ITPD";
       
    64 const wchar_t* const OPERATOR_DOMAIN_CATEGORY                 = L"OPD";
       
    65 const wchar_t* const UNIDENTIFIED_THIRD_PARTY_DOMAIN_CATEGORY = L"UTPD";
       
    66 
       
    67 /**
       
    68 * Constants defined for different protection domain names.
       
    69 *
       
    70 * IMPORTANT: These constants must be kept in sync with the constants defined
       
    71 *            on java inside com.nokia.mj.impl.security.midp.authorization.SecurityPolicyModule
       
    72 */
       
    73 const wchar_t* const MANUFACTURER_DOMAIN_NAME             = L"Manufacturer";
       
    74 const wchar_t* const IDENTIFIED_THIRD_PARTY_DOMAIN_NAME   = L"IdentifiedThirdParty";
       
    75 const wchar_t* const OPERATOR_DOMAIN_NAME                 = L"Operator";
       
    76 const wchar_t* const UNIDENTIFIED_THIRD_PARTY_DOMAIN_NAME = L"UnidentifiedThirdParty";
       
    77 
       
    78 #endif // SECURITYSTORAGEDATADEFS_H
       
    79 
       
    80