搜档网

搜档网

当前位置:搜档网 > KeySpec

KeySpec

KeySpec (Java Platform SE 6)



function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="KeySpec (Java Platform SE 6)"; } }








Overview  Package   Class  Use  Tree  Deprecated  Index  Help 

Java™ PlatformStandard Ed. 6


 PREV CLASS   NEXT CLASS
FRAMES    NO FRAMES     !-- if(window==top) { document.writeln('All Classes'); } //--
All Classes



SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD




java.security.spec
Interface KeySpec
All Known Implementing Classes: DESedeKeySpec, DESKeySpec, DHPrivateKeySpec, DHPublicKeySpec, DSAPrivateKeySpec, DSAPublicKeySpec, ECPrivateKeySpec, ECPublicKeySpec, EncodedKeySpec, PBEKeySpec, PKCS8EncodedKeySpec, RSAMultiPrimePrivateCrtKeySpec, RSAPrivateCrtKeySpec, RSAPrivateKeySpec, RSAPublicKeySpec, SecretKeySpec, X509EncodedKeySpec

public interface KeySpec

A (transparent) specification of the key material that constitutes a cryptographic key.
If the key is stored on a hardware device, its specification may contain information that helps identify the key on the device.
A key may be specified in an algorithm-specific way, or in an algorithm-independent encoding format (such as ASN.1). For example, a DSA private key may be specified by its components x, p, q, and g (see DSAPrivateKeySpec), or it may be specified using its DER encoding (see PKCS8EncodedKeySpec).
This interface contains no methods or constants. Its only purpose is to group (and provide type safety for) all key specifications. All key specifications must implement this interface.

Since: 1.2 See Also:Key, KeyFactory, EncodedKeySpec, X509EncodedKeySpec, PKCS8EncodedKeySpec, DSAPrivateKeySpec, DSAPublicKeySpec








Overview  Package   Class  Use  Tree  Deprecated  Index  Help 

Java™ PlatformStandard Ed. 6


 PREV CLASS   NEXT CLASS
FRAMES    NO FRAMES     !-- if(window==top) { document.writeln('All Classes'); } //--
All Classes



SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD


Submit a bug or featureFor further API reference and developer documentation, see Java SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation red

TOP相关主题

EncodedKeySpec
从以下版本开始: 1.2 另请参见:Key, KeyFactory, KeySpec, X509EncodedKeySpec, PKCS8EncodedKeySpec 构造方法摘要 EncodedKeySpec(byte[] encodedKey) &...
KeySpec
KeySpec (Java Platform SE 6) function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="KeySpec (...
PKCS8EncodedKeySpec
.spec 类 PKCS8EncodedKeySpec ng.Object java.security.spec.EncodedKeySpec java.security.spec.PKCS8EncodedKeySpec 所有已实现的接口: KeySpec public ...
RSAPrivateKeySpec
RSAPrivateKeySpec_IT/计算机_专业资料。JavaRSAPrivateKeySpec (Java 2 Platform SE 5.0) function windowTitle() { parent.document.title="RSAPrivateKeySpec ...
DSAPrivateKeySpec
从以下版本开始: 1.2 另请参见:Key, KeyFactory, KeySpec, DSAPublicKeySpec, PKCS8EncodedKeySpec 构造方法摘要 DSAPrivateKeySpec(BigInteger x, Big...
Java AES加密解密示例
(key.getBytes())); SecretKey secretKey = kgen.generateKey(); byte[] enCodeFormat = secretKey.getEncoded(); SecretKeySpec secretKeySpec = new Secret...
DES加密
importjavax.crypto.*; importjavax.crypto.spec.DESKeySpec; importjava.security.NoSuchAlgorithmException; importjava.security.InvalidKeyException; importjava....
RSAUtils
import java.security.spec.InvalidKeySpecException; import java.security.spec.X509EncodedKeySpec; import java.util.HashMap; import java.util.Map; import javax...
数字签名实例代码
"); }catch(Exception e){ } } } } 2.生成数字签名 从私钥文件读取数据文件并将其转换为 PrivateKey 对象,可以使用 KeyFactory 类和 PKCS8EncodeKeySpec 类...
des
KeySpec desKey = new DESKeySpec(hexStringToByte(password)); // 创建一个密匙工厂,然后用它把 DESKeySpec 转换成 SecretKeyFactory keyFactory = SecretKey...