javacommons/security/src.linux/ocspclient.h
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*
       
     2 * Copyright (c) 2007-2007 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 
       
    19 #ifndef OCSPCLIENT_H
       
    20 #define OCSPCLIENT_H
       
    21 
       
    22 #include "ocspchecker.h"
       
    23 #include <vector>
       
    24 
       
    25 namespace java
       
    26 {
       
    27 namespace security
       
    28 {
       
    29 
       
    30 class OcspResponse
       
    31 {
       
    32 
       
    33 public:
       
    34 
       
    35     int iSummary;
       
    36     std::vector<int> iIndividualResponses;
       
    37 };
       
    38 
       
    39 class OcspClient
       
    40 {
       
    41 public:
       
    42     static OcspClient* createInstance(long iap, const char* defaultUrl);
       
    43     void startOcspCheck(const char **, int);
       
    44     OcspResponse getOcspCheckResponse();
       
    45     void cancelOcspCheck(bool doCleanup);
       
    46 };
       
    47 
       
    48 } //end namespace security
       
    49 } //end namespace java
       
    50 
       
    51 #endif // OCSPCLIENT_H