00001 //---------------------------------------------------------------------------- 00004 // 00005 // (C) 2003-2006 Celartem Technology Inc. All rights reserved. 00006 //---------------------------------------------------------------------------- 00007 00008 #ifndef _cel_securestring_h_ 00009 #define _cel_securestring_h_ 00010 00011 #include "cel_string.h" 00012 #include "cel_memory.h" 00013 00014 namespace Celartem 00015 { 00026 class SecureString 00027 { 00028 public: 00035 SecureString(const String& inString = NullString); 00036 00042 SecureString(const SecureString& inSecString); 00043 00048 ~SecureString(); 00049 00058 SecureString& operator=(const String& inString); 00059 00067 SecureString& operator=(const SecureString& inSecString); 00068 00074 String getAsString() const; 00075 00079 operator String() const; 00080 00081 private: 00082 SimpleArray<u8> m_data; 00083 }; 00084 } 00085 00086 #endif // _cel_securestring_h_