JavaTM 2 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 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。