javacommons/security/inc/midpauthenticationmodule.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 MIDPAUTHENTICATIONMODULE_H
       
    19 #define MIDPAUTHENTICATIONMODULE_H
       
    20 
       
    21 #include <list>
       
    22 #include <stdio.h>
       
    23 #include <string>
       
    24 
       
    25 #include "javaosheaders.h"
       
    26 #include "javauid.h"
       
    27 
       
    28 namespace java
       
    29 {
       
    30 namespace security
       
    31 {
       
    32 
       
    33 class MIDPAuthenticationModule
       
    34 {
       
    35 public:
       
    36 
       
    37     /**
       
    38      * Creates an instance of the MIDPAuthenticationModule
       
    39      *
       
    40      * @return An instance of MIDPAuthenticationModule
       
    41      */
       
    42     OS_IMPORT static MIDPAuthenticationModule* createInstance();
       
    43 
       
    44     /**
       
    45      * Gets application suite certificate chains.
       
    46      *
       
    47      * @param aUid application suite uid.
       
    48      * @param aChains[out] populated certificate chain list. Empty if
       
    49      *                     application is not signed or application is not
       
    50      *                     identified by given attributes.
       
    51      */
       
    52     virtual void getCertChains(const java::util::Uid& aUid,
       
    53                                std::list<std::string>& aChains) = 0;
       
    54 
       
    55 };
       
    56 
       
    57 } // end namespace security
       
    58 } // end namespace java
       
    59 
       
    60 #endif // MIDPAUTHENTICATIONMODULE_H
       
    61