TDE core libraries
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ksslsession.h 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* This file is part of the KDE project
  2. *
  3. * Copyright (C) 2003 George Staikos <staikos@kde.org>
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Library General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Library General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Library General Public License
  16. * along with this library; see the file COPYING.LIB. If not, write to
  17. * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  18. * Boston, MA 02110-1301, USA.
  19. */
  20. #ifndef _KSSLSESSION_H
  21. #define _KSSLSESSION_H
  22. #include <tqstring.h>
  23. #include <tdelibs_export.h>
  24. class KSSL;
  25. class KSSLSessionPrivate;
  26. /**
  27. * KDE SSL Session Information
  28. *
  29. * This class contains data about an SSL session.
  30. * It is just used as a container that is taken from or passed to KSSL objects.
  31. *
  32. * @author George Staikos <staikos@kde.org>
  33. * @see KSSL
  34. * @short KDE SSL Session Information
  35. */
  36. class TDEIO_EXPORT KSSLSession {
  37. friend class KSSL;
  38. public:
  39. /**
  40. * Destroy this instance
  41. */
  42. ~KSSLSession();
  43. /**
  44. * Convert to a base64 encoded string (so it can be copied safely)
  45. */
  46. TQString toString() const;
  47. /**
  48. * Create as session ID object from a base64 encoded string.
  49. * @param s the session id in base64 encoded ASN.1 format
  50. * @return a KSSLSession object, or 0L on error
  51. */
  52. static KSSLSession* fromString(const TQString& s);
  53. protected:
  54. KSSLSession();
  55. KSSLSession(const KSSLSession&);
  56. void *_session;
  57. private:
  58. KSSLSessionPrivate *d;
  59. };
  60. #endif