ikeconfiguration.h

00001 /***************************************************************************
00002  *   Copyright (C) 2005 by                                                 *
00003  *   Pedro J. Fernandez Ruiz    pedroj.fernandez@dif.um.es                 *
00004  *   Alejandro Perez Mendez     alejandro_perez@dif.um.es                  *
00005  *                                                                         *
00006  *   This library is free software; you can redistribute it and/or         *
00007  *   modify it under the terms of the GNU Lesser General Public            *
00008  *   License as published by the Free Software Foundation; either          *
00009  *   version 2.1 of the License, or (at your option) any later version.    *
00010  *                                                                         *
00011  *   This library is distributed in the hope that it will be useful,       *
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00014  *   Lesser General Public License for more details.                       *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU Lesser General Public      *
00017  *   License along with this library; if not, write to the Free Software   *
00018  *   Foundation, Inc., 51 Franklin St, Fifth Floor,                        *
00019  *   Boston, MA  02110-1301  USA                                           *
00020  ***************************************************************************/
00021 #ifndef IKECONFIGURATION_H
00022 #define IKECONFIGURATION_H
00023 
00024 #include "proposal.h"
00025 #include "id.h"
00026 #include "payload_auth.h"
00027 #include "payload_cert.h"
00028 #include "enums.h"
00029 #include "printable.h"
00030 #include "attributemap.h"
00031 #include "certificatecontroller.h"
00032 #include "bytearray.h"
00033 #include "pskcontroller.h"
00034 
00035 using namespace std;
00036 
00037 
00038 namespace openikev2 {
00043 class IkeConfiguration : public Printable {
00044         
00045         /****************************** ATTRIBUTES ******************************/
00046 protected:
00047         auto_ptr<Proposal> proposal;                            
00048 public:
00049         auto_ptr<ID> my_id;                                     
00050         Enums::AUTH_METHOD auth_method;                         
00051         Enums::AUTH_METHOD peer_auth_method;                    
00052         bool request_configuration;                             
00054         uint32_t retransmition_time;                            
00055         uint32_t retransmition_factor;                          
00056         uint32_t rekey_time;                                    
00057         uint32_t ike_max_exchange_retransmitions;               
00059         bool initiator_uses_eap;                                
00060         auto_ptr<CertificateController> certificate_controller; 
00061         auto_ptr<PskController> psk_controller;                 
00062         bool send_cert_req;                                     
00063         bool send_cert;                                         
00064         bool hash_url_support;                                  
00066         auto_ptr<AttributeMap> attributemap;                    
00068         /****************************** METHODS ******************************/
00069 public:
00074         IkeConfiguration(auto_ptr<Proposal> proposal);
00075 
00080         virtual auto_ptr<IkeConfiguration> clone() const;
00081 
00086         virtual Proposal& getProposal() const;
00087         
00092         virtual void setProposal(auto_ptr<Proposal> proposal);
00093         
00094         virtual string toStringTab(uint8_t tabs) const;
00095         
00096         virtual ~IkeConfiguration();
00097     };
00098 }
00099 #endif

Generated on Fri Jul 27 11:04:44 2007 for libopenikev2 by  doxygen 1.5.1