gpt4 book ai didi

c# - 如何使用 UniObjects for .net 保护 UniData session

转载 作者:太空宇宙 更新时间:2023-11-03 13:43:57 25 4
gpt4 key购买 nike

如何使用 UniObjects for .net 保护 UniData session ?

documentation严重缺乏。 UniObjects for Java documentation有一整章是关于 SSL 的。

编辑

UniObjects .net 文档是这样描述 UniSession.EncryptionType 属性的:

public int EncryptionType {get; set}

This property gets or sets the default encryption type for the session.

int is the token number for the encryption type, as follows:

0 - UniObjectsTokens.NO_ENCRYPT - No encryption. This is the default value.

1 - UniObjectsTokens.UV_ENCRYPT - Encrypt all data using internal database encryption.

If you set UV_ENCRYPT for a session, all data transferred between client and server is encrypted.

如果我将我的 UniSession 对象的 EncryptionType 属性设置为 1 (UniObjectsTokens.UV_ENCRYPT),当我调用我的 UniCommand 的 Execute 方法时,我会得到一个 IBMU2.UODOTNET.UniRPCPacketException

"[IBM U2][UODOTNET - UNIRPC][ErrorCode=81004] An argument was requested from the RPC that was of an invalid type"

最佳答案

查看 UniData Security Features [pdf] 中的第 4 章SSL 支持文档。看起来您可以修改 UniObjects 连接字符串以指定您需要安全连接:

In previous versions, the ConnectionString property was used only to specify the server process to be used for the session. It now provides a second set of parameters to specify a secure connection.

关于c# - 如何使用 UniObjects for .net 保护 UniData session ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1666814/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com