ZDK
IEncryptionConfigurationl.h
1 #ifndef __IENCRYPTIONCONTROL__
2 #define __IENCRYPTIONCONTROL__
3 
4 #include "Types/SharedPointerTypes.h"
5 
6 namespace ZDK
7 {
8 
9 class ITLSConfiguration;
10 
11 //# @abi(all) documentation
14 //# @abi(obj_c) skip_pool
16 {
17  public:
18  //# @abi(all) documentation
28  //# @abi(jni|obj_c) property
29  //# @abi(jni|obj_c) @param(return) nullable
30  virtual ZDK::Shared::TLSConfiguration TLSConfig() = 0;
31 
32  //# @abi(all) documentation
42  //# @abi(jni|obj_c) property
43  //# @abi(jni|obj_c) @param(value) nullable
44  virtual void TLSConfig(ZDK::Shared::TLSConfiguration value) = 0;
45 
46  //# @abi(all) documentation
72  virtual ZDK::Shared::Result AddKnownCertificate(ZDK::Shared::SecureCertData secureCert) = 0;
73 
74  //# @abi(all) documentation
91  virtual ZDK::Shared::Result AddCertificates(ZDK::Shared::String filename) = 0;
92 
93  //# @abi(all) documentation
109  virtual ZDK::Shared::Result AddCertificatesDirect(unsigned char* data, int dataLen) = 0;
110 
111  //# @abi(all) documentation
123  //# @abi(all) ignore
124  virtual ZDK::Shared::Result EnableCertServer(int discoverPort, int requestPort, const char* sharedKey,
125  int sharedKeyLen) = 0;
126 
127  //# @abi(all) documentation
134  //# @abi(all) ignore
135  virtual ZDK::Shared::Result DisableCertServer() = 0;
136 
137  //# @abi(all) documentation
149  //# @abi(all) ignore
150  virtual ZDK::Shared::Result DiscoverCertServer(int discoverPort, ZDK::Shared::String hostName,
151  const char* sharedKey, int sharedKeyLen) = 0;
152 
153  //# @abi(all) documentation
164  //# @abi(all) ignore
165  virtual ZDK::Shared::Result SendCertRequest(ZDK::Shared::String requestBody) = 0;
166 
167  //# @abi(all) documentation
179  //# @abi(all) ignore
180  virtual ZDK::Shared::Result SendCertResponse(ZDK::ZDKHandle id, ZDK::Shared::String pResponse) = 0;
181 
182  //# @abi(all) documentation
234  virtual ZDK::Shared::Result GlobalZrtpCache(ZDK::Shared::String value) = 0;
235 
236  //# @abi(all) documentation
247  virtual ZDK::SecureCertStatus EvaluateCertificateTrust(ZDK::Shared::SecureCertData value) = 0;
248 };
249 
250 } //namespace ZDK
251 
252 #endif //__IENCRYPTIONCONTROL__
virtual ZDK::SecureCertStatus EvaluateCertificateTrust(ZDK::Shared::SecureCertData value)=0
Evaluates the certificate trust type.
Definition: IZHandle.h:12
virtual ZDK::Shared::Result SendCertRequest(ZDK::Shared::String requestBody)=0
Sends a "request" to the discovered server.
virtual ZDK::Shared::Result AddKnownCertificate(ZDK::Shared::SecureCertData secureCert)=0
Adds a certificate to the exception list.
virtual ZDK::Shared::Result AddCertificatesDirect(unsigned char *data, int dataLen)=0
Adds TLS certificates from memory.
virtual ZDK::Shared::Result DiscoverCertServer(int discoverPort, ZDK::Shared::String hostName, const char *sharedKey, int sharedKeyLen)=0
Discovers certificate server on given port or by host name.
virtual ZDK::Shared::Result EnableCertServer(int discoverPort, int requestPort, const char *sharedKey, int sharedKeyLen)=0
Starts certificate server.
virtual ZDK::Shared::Result GlobalZrtpCache(ZDK::Shared::String value)=0
Configure global ZRTP ZID Cache file.
Definition: IAccountConfig.h:10
Encription specific configuration.
Definition: IEncryptionConfigurationl.h:15
virtual ZDK::Shared::TLSConfiguration TLSConfig()=0
Gets the TLS specific configuration.
virtual ZDK::Shared::Result SendCertResponse(ZDK::ZDKHandle id, ZDK::Shared::String pResponse)=0
Sends a response to a cert client.
virtual ZDK::Shared::Result DisableCertServer()=0
Stops certificate server.
virtual ZDK::Shared::Result AddCertificates(ZDK::Shared::String filename)=0
Adds TLS certificates from a PEM file.