Skip to content

class KeyManagementOptions

cangjie
public class KeyManagementOptions

功能:表示数据保护密钥管理相关配置选项。

成员概览

成员功能
var autoGenerateKeys指示是否自动生成新密钥。
var keyRepository指定密钥持久化仓储实现。
var newKeyLifetime指定新生成密钥的默认生存期。
var authenticatedEncryptorConfiguration指定默认使用的认证加密器算法配置。
let authenticatedEncryptorFactories保存可用的认证加密器工厂集合。
let keyEscrowSinks保存注册的密钥托管接收器集合。

var autoGenerateKeys

cangjie
public var autoGenerateKeys = true

功能:指示是否自动生成新密钥。

var keyRepository

cangjie
public var keyRepository: ?IKeyRepository = None

功能:指定密钥持久化仓储实现。

类型:?IKeyRepository

var newKeyLifetime

cangjie
public var newKeyLifetime = Duration.day * 90

功能:指定新生成密钥的默认生存期。

var authenticatedEncryptorConfiguration

cangjie
public var authenticatedEncryptorConfiguration: ?AlgorithmConfiguration = None

功能:指定默认使用的认证加密器算法配置。

类型:?AlgorithmConfiguration

let authenticatedEncryptorFactories

cangjie
public let authenticatedEncryptorFactories = ArrayList<IAuthenticatedEncryptorFactory>()

功能:保存可用的认证加密器工厂集合。

let keyEscrowSinks

cangjie
public let keyEscrowSinks = ArrayList<IKeyEscrowSink>()

功能:保存注册的密钥托管接收器集合。