javacommons/security/javaunicertstoreplugin/src.s60/javacertstoretoken.h
branchRCL_3
changeset 14 04becd199f91
equal deleted inserted replaced
13:f5050f1da672 14:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef JAVACERTSTORETOKEN_H
       
    19 #define JAVACERTSTORETOKEN_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <ct.h>
       
    23 
       
    24 namespace java
       
    25 {
       
    26 namespace security
       
    27 {
       
    28 
       
    29 //class CJavaCertStoreImpl;
       
    30 class CJavaCertStoreTokenType;
       
    31 
       
    32 class CJavaCertStoreToken : public CBase, public MCTToken
       
    33 {
       
    34 public:
       
    35 
       
    36     static CJavaCertStoreToken* New(TInt iId, CJavaCertStoreTokenType& aType);
       
    37 
       
    38     virtual ~CJavaCertStoreToken();
       
    39 
       
    40     //MCTToken
       
    41     virtual MCTTokenType& TokenType();
       
    42     virtual const TDesC& Label();
       
    43     virtual TCTTokenHandle Handle();
       
    44 
       
    45 protected:
       
    46 
       
    47     virtual TInt& ReferenceCount();
       
    48     virtual void DoGetInterface(TUid aRequiredInterface,  MCTTokenInterface*& aReturnedInterface,
       
    49                                 TRequestStatus& aStatus);
       
    50     virtual TBool DoCancelGetInterface();
       
    51     virtual const TDesC& Information(TTokenInformation);
       
    52 
       
    53 private:
       
    54     //Datamembers.
       
    55     CJavaCertStoreTokenType&    iType;
       
    56     TInt                        iId;
       
    57     TInt                        iRefCount;
       
    58     //CJavaCertStoreImpl*         iStore;
       
    59 
       
    60     //Internal operations.
       
    61     CJavaCertStoreToken(TInt aId, CJavaCertStoreTokenType& aType);
       
    62 
       
    63 };
       
    64 
       
    65 } // end of namespace java
       
    66 } // end of namespace security
       
    67 
       
    68 #endif // JAVACERTSTORETOKEN_H
       
    69