00001 /* 00002 * $Id:X509Name.h 535 2007-08-12 10:49:40Z mindstorm2600 $ 00003 */ 00004 #ifndef __XVR2_SSL_X509_NAME_H__ 00005 #define __XVR2_SSL_X509_NAME_H__ 00006 #include<xvr2/String.h> 00007 #include<xvr2/Net/netdefs.h> 00008 #include<xvr2/Net/NetworkExceptions.h> 00009 00010 namespace xvr2 { 00011 namespace Net { 00012 class X509Name:public Object { 00013 //Common name 00014 String cn; 00015 //Organization 00016 String o; 00017 //Organizational Unit 00018 String ou; 00019 //e-mail 00020 String e; 00021 //Country 00022 String c; 00023 //State 00024 String st; 00025 //Location 00026 String l; 00027 public: 00028 X509Name(const String &x509_name); 00030 const String &commonName() const { 00031 return cn; 00032 } 00034 const String &organization() const { 00035 return o; 00036 } 00038 const String &organizationalUnit() const { 00039 return ou; 00040 } 00042 const String &email() const { 00043 return e; 00044 } 00046 const String &country() const { 00047 return c; 00048 } 00050 const String &state() const { 00051 return st; 00052 } 00054 const String &location() const { 00055 return l; 00056 } 00057 }; 00058 }; 00059 }; 00060 00061 #endif