| 软件包 | 描述 | 
|---|---|
| java.security | 
           提供安全框架的类和接口。 
          | 
| javax.crypto | 
           提供加密操作的类和接口。 
          | 
| javax.crypto.interfaces | 
           提供RSA实验室PKCS#3中定义的Diffie-Hellman密钥的接口。 
          | 
| javax.crypto.spec | 
           提供关键规范和算法参数规范的类和接口。 
          | 
| javax.security.auth.kerberos | 
           此包包含与Kerberos网络身份验证协议相关的实用程序类。 
          | 
| Class and Description | 
|---|
| SecretKey 
           一个秘密(对称)键。 
          | 
| Class and Description | 
|---|
| BadPaddingException 
           当期望输入数据的特定填充机制但数据未正确填充时,会抛出此异常。 
          | 
| Cipher 
           该类提供加密和解密的加密密码的功能。 
          | 
| CipherSpi 
           这个类定义的 
          (SPI) 
           Cipher类。 | 
| ExemptionMechanism 
           这个类提供了豁免机制的功能,其中的例子是 
          密钥恢复 , 
          密钥弱化和 
          密钥托管 。 
          | 
| ExemptionMechanismException 
           这是通用的ExemptionMechanism异常。 
          | 
| ExemptionMechanismSpi 
           这个类定义的 
          (SPI) 
           ExemptionMechanism类。 | 
| IllegalBlockSizeException 
           当提供给块密码的数据长度不正确时,抛出该异常,即与密码的块大小不匹配。 
          | 
| KeyAgreement 
           该类提供了密钥协议(或密钥交换)协议的功能。 
          | 
| KeyAgreementSpi 
           这个类定义的 
          (SPI) 
           KeyAgreement类。 | 
| KeyGenerator 
           该类提供了一个秘密(对称)密钥生成器的功能。 
          | 
| KeyGeneratorSpi 
           这个类定义的 
          (SPI) 
           KeyGenerator类。 | 
| Mac 
           该类提供了“消息验证码”(MAC)算法的功能。 
          | 
| MacSpi 
           这个类定义的 
          (SPI) 
           Mac类。 | 
| NoSuchPaddingException 
           当请求特定的填充机制但在环境中不可用时抛出此异常。 
          | 
| SealedObject 
           该类使程序员能够使用加密算法创建对象并保护其机密性。 
          | 
| SecretKey 
           一个秘密(对称)键。 
          | 
| SecretKeyFactory 
           这个类代表一个秘密密钥的工厂。 
          | 
| SecretKeyFactorySpi 
           这个类定义的 
          (SPI) 
           SecretKeyFactory类。 | 
| ShortBufferException 
           当用户提供的输出缓冲区太短而不能保存操作结果时,抛出此异常。 
          | 
| Class and Description | 
|---|
| SecretKey 
           一个秘密(对称)键。 
          | 
| Class and Description | 
|---|
| SecretKey 
           一个秘密(对称)键。 
          | 
| Class and Description | 
|---|
| SecretKey 
           一个秘密(对称)键。 
          | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.