JavaTM 2 Platform
Standard Ed. 6

介面 javax.xml.crypto.dsig.keyinfo.KeyInfo
的使用

使用 KeyInfo 的軟體套件
javax.xml.crypto 用於 XML 加密的通用類別。 
javax.xml.crypto.dsig 用於產生和驗證 XML 數位簽章的類別。 
javax.xml.crypto.dsig.keyinfo 用來解析和處理 KeyInfo 元素和結構的類別。 
 

javax.xml.crypto 中 KeyInfo 的使用
 

參數型別為 KeyInfo 的 javax.xml.crypto 中的方法
abstract  KeySelectorResult KeySelector.select(KeyInfo keyInfo, KeySelector.Purpose purpose, AlgorithmMethod method, XMLCryptoContext context)
          嘗試尋找滿足指定約束的密鑰。
 

javax.xml.crypto.dsig 中 KeyInfo 的使用
 

返回 KeyInfo 的 javax.xml.crypto.dsig 中的方法
 KeyInfo XMLSignature.getKeyInfo()
          返回此 XMLSignature 的密鑰資訊。
 

參數型別為 KeyInfo 的 javax.xml.crypto.dsig 中的方法
abstract  XMLSignature XMLSignatureFactory.newXMLSignature(SignedInfo si, KeyInfo ki)
          創建一個 XMLSignature,並使用指定的 SignedInfo 和 KeyInfo 物件的內容對其進行初始化。
abstract  XMLSignature XMLSignatureFactory.newXMLSignature(SignedInfo si, KeyInfo ki, List objects, String id, String signatureValueId)
          創建一個 XMLSignature,並使用指定的參數對其進行初始化。
 

javax.xml.crypto.dsig.keyinfo 中 KeyInfo 的使用
 

返回 KeyInfo 的 javax.xml.crypto.dsig.keyinfo 中的方法
abstract  KeyInfo KeyInfoFactory.newKeyInfo(List content)
          創建包含指定的密鑰資訊型別列表的 KeyInfo。
abstract  KeyInfo KeyInfoFactory.newKeyInfo(List content, String id)
          創建包含指定的密鑰資訊型別列表和可選 id 的 KeyInfo。
abstract  KeyInfo KeyInfoFactory.unmarshalKeyInfo(XMLStructure xmlStructure)
          根據特定於機制的 XMLStructure(比如:DOMStructure)實例解組新的 KeyInfo 實例。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

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