00001 // Copyright (c) Members of the EGEE Collaboration. 2004. 00002 // See http://www.eu-egee.org/partners/ for details on the copyright 00003 // holders. 00004 00005 // Licensed under the Apache License, Version 2.0 (the "License"); 00006 // you may not use this file except in compliance with the License. 00007 // You may obtain a copy of the License at 00008 00009 // http://www.apache.org/licenses/LICENSE-2.0 00010 00011 // Unless required by applicable law or agreed to in writing, software 00012 // distributed under the License is distributed on an "AS IS" BASIS, 00013 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 // See the License for the specific language governing permissions and 00015 // limitations under the License. 00016 00017 #ifndef GLITE_WMS_WMPROXYAPICPPUTILITIES_H 00018 #define GLITE_WMS_WMPROXYAPICPPUTILITIES_H 00019 #include "glite/wms/wmproxyapi/wmproxy_api.h" 00020 00027 #include <iostream> 00028 #include <string> 00029 #include <vector> 00030 00031 namespace glite { 00032 namespace wms { 00033 namespace wmproxyapiutils { 00034 00035 /* 00036 * Gets the current time 00037 * @return the seconds elapsed since Jan 1, 1970 00038 */ 00039 const time_t getTime( ); 00045 const char* checkPathExistence(const char* path); 00054 const char* getTrustedCert(glite::wms::wmproxyapi::ConfigContext *cfs=NULL); 00055 00064 const char* getProxyFile(glite::wms::wmproxyapi::ConfigContext *cfs=NULL); 00070 const char* getEndPoint (glite::wms::wmproxyapi::ConfigContext *cfs=NULL); 00076 const long getProxyTimeLeft(std::string pxfile); 00082 const long getCertTimeLeft(std::string pxfile); 00083 00091 const std::vector<std::string> getFQANs(std::string pxfile); 00092 00093 } // wmproxy namespace 00094 } // wms namespace 00095 } // glite namespace 00096 #endif 00097 //EOF