javacommons/security/src/midpauthenticationmoduleimpl.h
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19: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 MIDPAUTHENTICATIONMODULEIMPL_H
       
    19 #define MIDPAUTHENTICATIONMODULEIMPL_H
       
    20 
       
    21 #include "midpauthenticationmodule.h"
       
    22 
       
    23 namespace java
       
    24 {
       
    25 namespace security
       
    26 {
       
    27 
       
    28 // as a convention, the most descriptive result/failure code has the highest index value
       
    29 const int KCertAndSignatureOk = 1;
       
    30 const int KSignatureVerificationFailure = -1;
       
    31 const int KCertNotYetValidFailure = -2;
       
    32 const int KCertExpiredFailure = -3;
       
    33 const int KCertValidationFailure = -4;
       
    34 const int KSelfSignedCertInChainFailure = -5;
       
    35 const int KMissingRoot = -6;
       
    36 const int KUnknownExtendedKeyUsage = -7;
       
    37 // the default is always the last one
       
    38 const int KDefault = -8;
       
    39 
       
    40 class MIDPAuthenticationModuleImpl: public MIDPAuthenticationModule
       
    41 {
       
    42 public:
       
    43 
       
    44     MIDPAuthenticationModuleImpl();
       
    45 
       
    46     OS_IMPORT virtual void getCertChains(const java::util::Uid& aUid,
       
    47                                          std::list<std::string>& aChains);
       
    48 
       
    49 };
       
    50 
       
    51 } // end namespace security
       
    52 } // end namespace java
       
    53 
       
    54 #endif // MIDPAUTHENTICATIONMODULEIMPL_H
       
    55