1 /* 2 * Copyright 2014 Haiku, Inc. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _CERTIFICATE_H 6 #define _CERTIFICATE_H 7 8 9 #include <SecureSocket.h> 10 #include <String.h> 11 12 13 class BCertificate { 14 public: 15 ~BCertificate(); 16 17 BString String(); 18 19 time_t StartDate(); 20 time_t ExpirationDate(); 21 BString Issuer(); 22 BString Subject(); 23 24 private: 25 friend class BSecureSocket::Private; 26 class Private; 27 BCertificate(Private* data); 28 29 BCertificate(const BCertificate& other); 30 // copy-construction not allowed 31 32 Private* fPrivate; 33 }; 34 35 #endif 36