AdminTask 对象的 SecureConversation 命令组(不推荐)
有关 AdminTask 对象的 SecureConversation 组的命令,请参考本主题。将这些命令与管理脚本配合使用来查询、更新和除去安全对话客户机高速缓存配置数据。

使用 SecureConversation 组中的以下命令来管理定制的和非定制的安全对话客户机高速缓存配置:
querySCClientCacheConfiguration 命令
querySCClientCacheConfiguration 命令列出 WS-SecureConversation 的所有非定制客户机高速缓存配置数据。
目标对象
无必需参数
无。可选参数
无。返回值
此命令将返回所有非定制的客户机高速缓存配置数据的列表。
批处理方式示例用法
- 使用 Jython:
print AdminTask.querySCClientCacheConfiguration()
交互方式示例用法
- 使用 Jython:
AdminTask.querySCClientCacheConfiguration('-interactive')
querySCClientCacheCustomConfiguration 命令
querySCClientCacheCustomConfiguration 命令列出 WS-SecureConversation 的所有定制客户机高速缓存配置数据。
目标对象
无。必需参数
无。可选参数
无。返回值
此命令将返回所有定制的客户机高速缓存配置数据的列表。
批处理方式示例用法
- 使用 Jython:
print AdminTask.querySCClientCacheCustomConfiguration()
交互方式示例用法
- 使用 Jython:
AdminTask.querySCClientCacheCustomConfiguration('-interactive')
updateSCClientCacheConfiguration 命令
updateSCClientCacheConfiguration 命令设置高速缓存缓冲时间(以分钟计)并启用或禁用分布式高速缓存。
目标对象
无。必需参数
无。可选参数
- -distributedCache
- 指定是启用还是禁用了分布式高速缓存。如果运行 updateSCClientCacheConfiguration 命令时将 -distributedCache 参数设置为 true,那么系统会为 WS-Security 运行时启用分布式高速缓存。(布尔值,可选)
- -minutesInCacheAfterTimeout
- 指定令牌到期之后还将保留在高速缓存中的时间量(以分钟计)。经过此时间量之后就会更新此令牌。(整数,可选)
- -renewIntervalBeforeTimeoutMinutes
- 指定在令牌到期之间允许发出更新请求的时间量(以分钟计)。(整数,可选)
返回值
此命令将返回成功或失败消息。
批处理方式示例用法
- 使用 Jython 字符串:
AdminTask.updateSCClientCacheConfiguration('-minutesInCacheAfterTimeout 100 -distributedCache true')
- 使用 Jython 列表:
AdminTask.updateSCClientCacheConfiguration(['-minutesInCacheAfterTimeout', '100', '-distributedCache', 'true'])
交互方式示例用法
- 使用 Jython:
AdminTask.updateSCClientCacheConfiguration('-interactive')
updateSCClientCacheCustomConfiguration 命令
updateSCClientCacheCustomConfiguration 命令更新安全对话客户机高速缓存配置的定制属性。
目标对象
无。必需参数
无。可选参数
- -customProperties
- 安全对话客户机高速缓存配置的定制属性。(属性,可选)
返回值
此命令将返回成功或失败消息。
批处理方式示例用法
- 使用 Jython 字符串:
AdminTask.updateSCClientCacheCustomConfiguration('[-customProperties "[ [property2 value2] [property1 value1] ]"]')
- 使用 Jython 列表:
AdminTask.updateSCClientCacheCustomConfiguration(['-customProperties', '[ [property2 value2] [property1 value1] ]'])
交互方式示例用法
- 使用 Jython:
AdminTask.updateSCClientCacheCustomConfiguration('-interactive')
deleteSCClientCacheConfigurationCustomProperties 命令
deleteSCClientCacheConfigurationCustomProperties 命令从定制的安全对话客户机高速缓存配置中除去特定属性。
目标对象
无。必需参数
- -propertyNames
- 要删除的属性的名称。(字符串,必需)。
可选参数
无。返回值
此命令将返回成功或失败消息。
批处理方式示例用法
- 使用 Jython 字符串:
AdminTask.deleteSCClientCacheConfigurationCustomProperties('[-propertyNames [property1,property2]]')
- 使用 Jython 列表:
AdminTask.deleteSCClientCacheConfigurationCustomProperties(['-propertyNames', '[property1,property2]'])
交互方式示例用法
- 使用 Jython:
AdminTask.deleteSCClientCacheConfigurationCustomProperties('-interactive')