javamanager/javacaptain/extensionplugins/javacertstore/inc/trustedcertificate.h
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     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:  JavaCertStore
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TRUSTEDCERTIFICATE_H
       
    19 #define TRUSTEDCERTIFICATE_H
       
    20 
       
    21 #include "javaosheaders.h"
       
    22 
       
    23 #include <string>
       
    24 #include <vector>
       
    25 
       
    26 using namespace std;
       
    27 
       
    28 namespace java
       
    29 {
       
    30 namespace security
       
    31 {
       
    32 
       
    33 OS_NONSHARABLE_CLASS(TrustedCertificate)
       
    34 {
       
    35 
       
    36 public:
       
    37     TrustedCertificate(const string& aData, const string& aId, const vector<string>& aTrustedUsage);
       
    38 
       
    39     string getData();
       
    40     string getId();
       
    41     vector<string> getTrustedUsage();
       
    42 
       
    43 private:
       
    44     string iData;
       
    45     string iId;
       
    46     vector<string> iTrustedUsage;
       
    47 };
       
    48 
       
    49 inline TrustedCertificate::TrustedCertificate(const string& aData, const string& aId, const vector<string>& aTrustedUsage)
       
    50         : iData(aData), iId(aId), iTrustedUsage(aTrustedUsage) {}
       
    51 
       
    52 inline string TrustedCertificate::getData()
       
    53 {
       
    54     return iData;
       
    55 }
       
    56 inline string TrustedCertificate::getId()
       
    57 {
       
    58     return iId;
       
    59 }
       
    60 inline vector<string> TrustedCertificate::getTrustedUsage()
       
    61 {
       
    62     return iTrustedUsage;
       
    63 }
       
    64 
       
    65 } // namespace security
       
    66 } // namespace java
       
    67 
       
    68 #endif // TRUSTEDCERTIFICATE_H
       
    69