直接前往內容

最常造訪的網頁

最近瀏覽的網頁

navigation
added in API level 1

javax.crypto.spec

Provides classes and interfaces for key specifications and algorithm parameter specifications.

A key specification is a transparent representation of the key material that constitutes a key. A key may be specified in an algorithm-specific way, or in an algorithm-independent encoding format (such as ASN.1). This package contains key specifications for Diffie-Hellman public and private keys, as well as key specifications for DES, Triple DES, and PBE secret keys.

An algorithm parameter specification is a transparent representation of the sets of parameters used with an algorithm. This package contains algorithm parameter specifications for parameters used with the Diffie-Hellman, DES, Triple DES, PBE, RC2 and RC5 algorithms.

Package Specification

  • PKCS #3: Diffie-Hellman Key-Agreement Standard, Version 1.4, November 1993.
  • PKCS #5: Password-Based Encryption Standard, Version 1.5, November 1993.
  • Federal Information Processing Standards Publication (FIPS PUB) 46-2: Data Encryption Standard (DES)

Related Documentation

For documentation that includes information about algorithm parameter and key specifications, please see:

Classes

DESedeKeySpec This class specifies a DES-EDE ("triple-DES") key. 
DESKeySpec This class specifies a DES key. 
DHGenParameterSpec This class specifies the set of parameters used for generating Diffie-Hellman (system) parameters for use in Diffie-Hellman key agreement. 
DHParameterSpec This class specifies the set of parameters used with the Diffie-Hellman algorithm, as specified in PKCS #3: Diffie-Hellman Key-Agreement Standard
DHPrivateKeySpec This class specifies a Diffie-Hellman private key with its associated parameters. 
DHPublicKeySpec This class specifies a Diffie-Hellman public key with its associated parameters. 
GCMParameterSpec Specifies the set of parameters required by a Cipher using the Galois/Counter Mode (GCM) mode. 
IvParameterSpec This class specifies an initialization vector (IV). 
OAEPParameterSpec This class specifies the set of parameters used with OAEP Padding, as defined in the PKCS #1 standard. 
PBEKeySpec A user-chosen password that can be used with password-based encryption (PBE). 
PBEParameterSpec This class specifies the set of parameters used with password-based encryption (PBE), as defined in the PKCS #5 standard. 
PSource This class specifies the source for encoding input P in OAEP Padding, as defined in the PKCS #1 standard. 
PSource.PSpecified This class is used to explicitly specify the value for encoding input P in OAEP Padding. 
RC2ParameterSpec This class specifies the parameters used with the RC2 algorithm. 
RC5ParameterSpec This class specifies the parameters used with the RC5 algorithm. 
SecretKeySpec This class specifies a secret key in a provider-independent fashion. 
本網站使用 Cookie 儲存你在此指定的語言和顯示選項偏好設定。

掌握有關 Android 開發人員的最新消息和實用訣竅,協助你製作最受歡迎的 Google Play 內容。

* 必填欄位

訂閱成功!

在 WeChat 上追蹤 Google Developers

你要以瀏覽這個網站嗎?

你要求以顯示這個網頁,但你為此網站指定的語言偏好設定為

是否要變更語言偏好設定並改用瀏覽網站?稍後如要變更語言偏好設定,請利用位在每個網頁最下方的語言選單來調整設定。

你的 API 層級必須達 以上才能存取這個級別

本說明文件已隱藏,因為你為該文件選取的 API 層級為 。使用左側導覽列上方的選取工具即可變更說明文件的 API 層級。

如需進一步瞭解如何為應用程式指定 API 層級的相關資訊,請參閱 Supporting Different Platform Versions (支援不同的平台版本) (英文)。

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)