JavaTM Platform
Standard Ed. 6

类 javax.xml.crypto.KeySelector
的使用

使用 KeySelector 的软件包
javax.xml.crypto 用于 XML 加密的通用类。 
javax.xml.crypto.dom javax.xml.crypto 包的特定于 DOM 的类。 
javax.xml.crypto.dsig.dom javax.xml.crypto.dsig 包特定于 DOM 的类。 
 

javax.xml.crypto 中 KeySelector 的使用
 

返回 KeySelector 的 javax.xml.crypto 中的方法
 KeySelector XMLCryptoContext.getKeySelector()
          返回用于查找某个密钥的密钥选择器。
static KeySelector KeySelector.singletonKeySelector(Key key)
          返回一个总是选择指定密钥的 KeySelector,不管传递给它的 KeyInfo 是什么。
 

参数类型为 KeySelector 的 javax.xml.crypto 中的方法
 void XMLCryptoContext.setKeySelector(KeySelector ks)
          设置用于查找某个密钥的密钥选择器。
 

javax.xml.crypto.dom 中 KeySelector 的使用
 

返回 KeySelector 的 javax.xml.crypto.dom 中的方法
 KeySelector DOMCryptoContext.getKeySelector()
           
 

参数类型为 KeySelector 的 javax.xml.crypto.dom 中的方法
 void DOMCryptoContext.setKeySelector(KeySelector ks)
           
 

javax.xml.crypto.dsig.dom 中 KeySelector 的使用
 

参数类型为 KeySelector 的 javax.xml.crypto.dsig.dom 中的构造方法
DOMSignContext(KeySelector ks, Node parent)
          创建带有指定密钥选择器和父节点的 DOMSignContext。
DOMSignContext(KeySelector ks, Node parent, Node nextSibling)
          创建带有指定密钥选择器、父节点和下一个兄弟节点的 DOMSignContext。
DOMValidateContext(KeySelector ks, Node node)
          创建包含指定密钥选择器和节点的 DOMValidateContext。
 


JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。