vpnengine/dmadpki/inc/dmadcertparms.h
changeset 0 33413c0669b9
equal deleted inserted replaced
-1:000000000000 0:33413c0669b9
       
     1 /*
       
     2 * Copyright (c) 2002 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: Class definition of CDmAdCertParms.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __DMADCERTPARMS_H__
       
    21 #define __DMADCERTPARMS_H__
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <securitydefs.h>
       
    25 
       
    26 #include "pkidefs.h"
       
    27 
       
    28 
       
    29 class CDmAdCertParms : public CBase
       
    30     {
       
    31 public:
       
    32     static CDmAdCertParms* NewL();
       
    33     static CDmAdCertParms* NewLC();
       
    34     ~CDmAdCertParms();
       
    35     
       
    36     TPKICertificateOwnerType Type() const;
       
    37     void SetType(TPKICertificateOwnerType aType);
       
    38             
       
    39     TBool Deletable() const;
       
    40     void SetDeletable(TBool aDeletable);
       
    41     
       
    42     TBool Trusted() const;
       
    43     void SetTrusted(TBool aTrusted);
       
    44     
       
    45     const RArray<TUid>& Applicability() const;
       
    46     void SetApplicabilityL(const RArray<TUid>& aApplicability);
       
    47     
       
    48     TPtrC8 Content() const;
       
    49     void SetContentL(const TDesC8& aContent);
       
    50     
       
    51     TPtrC8 KeyId() const;
       
    52     void SetKeyId(const TDesC8& aKeyLuid);
       
    53         
       
    54 private:
       
    55     CDmAdCertParms();
       
    56     
       
    57 private:
       
    58     TPKICertificateOwnerType iType;   
       
    59     TBool                    iDeletable;
       
    60     TBool                    iTrusted;
       
    61     RArray<TUid>             iApplicability;
       
    62     HBufC8*                  iContent; //CertificateDer;
       
    63 
       
    64     //----- only for AttachCertificateL --------
       
    65     TKeyIdentifier      iKeyId;
       
    66     };
       
    67 
       
    68 #endif