xref: /haiku/headers/os/net/Certificate.h (revision 5e96d7d537fbec23bad4ae9b4c8e7b02e769f0c6)
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 	Private*	fPrivate;
30 };
31 
32 #endif
33