CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbSecurity.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef _ODDBSECURITY_INCLUDED_
25#define _ODDBSECURITY_INCLUDED_
26
27#include "TD_PackPush.h"
28
29#include "RxObject.h"
30#include "OdArray.h"
31#include "DbExport.h"
32#include "OdString.h"
33#include "OdBinaryData.h"
34
36
37enum
38{
41
44 //FELIX_CHANGE_BEGIN: To support Remove Sign functionality
46 //FELIX_CHANGE_END
47
48 SECURITYPARAMS_ALGID_RC4 = 0x00006801
49};
50
51
53
61{
62public:
64 : nFlags(0)
65 , nProvType(0)
67 , nKeyLength(40)
68 {}
69
76
82};
83
89{
90public:
93
95};
96
105{
106public:
108
115 virtual bool initialize(const OdSecurityParams& securityParams) = 0;
124 virtual bool encryptData(OdUInt8* buffer, OdUInt32 bufferSize) = 0;
125
134 virtual bool decryptData(OdUInt8* buffer, OdUInt32 bufferSize) = 0;
135
143
151 virtual void appendDataToProcessSignature(const OdBinaryData& dataBlock) = 0;
152
164 virtual bool signData(const OdSecurityParams& securityParams, OdBinaryData& signatureBlock) = 0;
165
173 virtual void verifyDataSignature(const OdBinaryData& signatureBlock,
175 OdSignatureDescription& signatureDesc) = 0;
176};
177
182
189{
190public:
194 virtual bool done() const = 0;
198 virtual void next() = 0;
204 virtual void get(OdPassword& password) const = 0;
205};
206
211
217{
218public:
224 virtual void add(const OdPassword& password) = 0;
230};
231
236
237#include "TD_PackPop.h"
238
239#endif // _ODDBSECURITY_INCLUDED_
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdPwdIterator > OdPwdIteratorPtr
Definition: DbSecurity.h:210
OdSmartPtr< OdPwdCache > OdPwdCachePtr
Definition: DbSecurity.h:235
OdSmartPtr< OdDbCrypt > OdDbCryptPtr
Definition: DbSecurity.h:181
OdString OdPassword
Definition: DbSecurity.h:52
@ SECURITYPARAMS_ENCRYPT_PROPS
Definition: DbSecurity.h:40
@ SECURITYPARAMS_UNSIGN_DATA
Definition: DbSecurity.h:45
@ SECURITYPARAMS_ALGID_RC4
Definition: DbSecurity.h:48
@ SECURITYPARAMS_SIGN_DATA
Definition: DbSecurity.h:42
@ SECURITYPARAMS_ADD_TIMESTAMP
Definition: DbSecurity.h:43
@ SECURITYPARAMS_ENCRYPT_DATA
Definition: DbSecurity.h:39
unsigned int OdUInt32
unsigned char OdUInt8
virtual bool signData(const OdSecurityParams &securityParams, OdBinaryData &signatureBlock)=0
ODRX_DECLARE_MEMBERS(OdDbCrypt)
virtual bool decryptData(OdUInt8 *buffer, OdUInt32 bufferSize)=0
virtual bool digitalSignatureModeLaunched()
virtual bool initialize(const OdSecurityParams &securityParams)=0
virtual void appendDataToProcessSignature(const OdBinaryData &dataBlock)=0
virtual bool encryptData(OdUInt8 *buffer, OdUInt32 bufferSize)=0
virtual void verifyDataSignature(const OdBinaryData &signatureBlock, OdCryptoServices::OdSignatureVerificationResult &verificationResult, OdSignatureDescription &signatureDesc)=0
virtual OdPwdIteratorPtr newIterator()=0
virtual void add(const OdPassword &password)=0
virtual void get(OdPassword &password) const =0
virtual bool done() const =0
virtual void next()=0
OdString sCertIssuer
Definition: DbSecurity.h:78
OdUInt32 nFlags
Definition: DbSecurity.h:70
OdUInt32 nAlgId
Definition: DbSecurity.h:74
OdString sCertSerialNum
Definition: DbSecurity.h:79
OdString sTimeServer
Definition: DbSecurity.h:81
OdUInt32 nProvType
Definition: DbSecurity.h:72
OdString provName
Definition: DbSecurity.h:73
OdString sComment
Definition: DbSecurity.h:80
OdPassword password
Definition: DbSecurity.h:71
OdString sCertSubject
Definition: DbSecurity.h:77
OdUInt32 nKeyLength
Definition: DbSecurity.h:75
OdString m_timeServiceUsed
Definition: DbSecurity.h:92
OdString m_signatureDateAndTime
Definition: DbSecurity.h:91
GLuint buffer
Definition: gles2_ext.h:178