JavaTM 2 Platform
Standard Ed. 6

類別 javax.crypto.Cipher
的使用

使用 Cipher 的軟體套件
javax.crypto 為加密操作提供類別和介面。 
 

javax.crypto 中 Cipher 的使用
 

javax.crypto 中 Cipher 的子類別
 class NullCipher
          NullCipher 類別是一個提供“標識密碼”的類別,其不轉換純文本。
 

返回 Cipher 的 javax.crypto 中的方法
static Cipher Cipher.getInstance(String transformation)
          返回實作指定轉換的 Cipher 物件。
static Cipher Cipher.getInstance(String transformation, Provider provider)
          返回實作指定轉換的 Cipher 物件。
static Cipher Cipher.getInstance(String transformation, String provider)
          返回實作指定轉換的 Cipher 物件。
 

參數型別為 Cipher 的 javax.crypto 中的方法
 PKCS8EncodedKeySpec EncryptedPrivateKeyInfo.getKeySpec(Cipher cipher)
          將密封的 PKCS8EncodedKeySpec 物件從加密的資料中抽取出來並將其返回。
 Object SealedObject.getObject(Cipher c)
          獲取原始(封裝的)物件。
 

參數型別為 Cipher 的 javax.crypto 中的建構子
CipherInputStream(InputStream is, Cipher c)
          根據 InputStream 和 Cipher 建構 CipherInputStream。
CipherOutputStream(OutputStream os, Cipher c)
          從 OutputStream 和 Cipher 建構 CipherOutputStream。
SealedObject(Serializable object, Cipher c)
          從任何 Serializable 物件建構一個 SealedObject。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

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