DFACE C++  5.0.0
dface_accredit.h
Go to the documentation of this file.
1 // Hang Zhou Xiao Kong Cheng Xiang Ke Ji You Xian Gong Si is pleased to support DFACE SDK LIBRARY.
2 //
3 // Copyright © 2017-2020, Hang Zhou Xiao Kong Cheng Xiang Ke Ji You Xian Gong Si Holding Limited//
4 
5 #ifndef DFACE_ACCREDIT_H
6 #define DFACE_ACCREDIT_H
7 #include <stdio.h>
8 #include <stdint.h>
9 #include "common.h"
10 
15 public:
20 
24  virtual ~DfaceAccredit() { return; };
25 
30  virtual int login() = 0;
31 
37  virtual int updateOnline(char *authCode) = 0;
38 
44  virtual int updateOfline(char* acFilePath) = 0;
45 
50  virtual int logout() = 0;
51 
59  virtual int getDeviceFingerPrint(const char* authCode, char* fingerPrintInfo, unsigned int *fingerPrintSize) = 0;
60 
66  virtual int setRootPath(char* path) = 0;
67 
72  virtual int getVersion() = 0;
73 
79  virtual int remove(const char* authCode) = 0;
80 
81 
89  virtual int setLocalServer(const char* hostName, uint32_t port, uint32_t timeoutSeconds) = 0;
90 
91 
100  virtual int setProxy(const char* hostName, uint32_t port, const char* userId, const char* password) = 0;
101 
102 
108  virtual int revokeOnline(const char *authCode) = 0;
109 
110 
118  virtual int revokeOffline(const char *authCode, char *revocationInfo, unsigned int *revocationInfoSize) = 0;
119 
120 
129  virtual int getInfo(const char *authCode, int type, char *pInfo, uint32_t *pInfoSize) = 0;
130 
131 };
132 
137 
142 typedef void DestroyAccredit(DfaceAccredit *dc);
143 
144 
145 #endif //DFACE_ACCREDIT_H
DfaceAccredit * CreateAccredit()
Definition: dface_accredit.h:136
virtual ~DfaceAccredit()
Definition: dface_accredit.h:24
License API.
Definition: dface_accredit.h:14
void DestroyAccredit(DfaceAccredit *dc)
Definition: dface_accredit.h:142
#define DFACE_EXPORTS
Definition: common.h:19
DfaceAccredit()
Definition: dface_accredit.h:19