软件包 | 描述 |
---|---|
java.security |
为安全框架提供类和接口。
|
java.security.interfaces |
生成RSA(Rivest,夏米尔提供的接口和Adleman AsymmetricCipher算法)键在RSA实验室的技术说明和# 1定义,与DSA(数字签名算法)键在NIST的fips-186定义。
|
javax.crypto |
提供加密操作的类和接口。
|
javax.crypto.interfaces |
提供接口,如Diffie-Hellman密钥RSA实验室定义# PKCS 3。
|
javax.crypto.spec |
提供关键规格和算法参数规格的类和接口。
|
javax.security.auth.kerberos |
此包包含实用类的Kerberos网络认证协议相关。
|
javax.xml.crypto |
XML加密的公共类。
|
javax.xml.crypto.dsig.dom |
为
javax.xml.crypto.dsig DOM类具体包。
|
Modifier and Type | Interface and Description |
---|---|
interface |
PrivateKey
私钥密钥。
|
interface |
PublicKey
公共密钥。
|
Modifier and Type | Method and Description |
---|---|
abstract Key |
KeyStoreSpi.engineGetKey(String alias, char[] password)
返回与给定别名关联的密钥,使用给定的密码来恢复它。
|
protected abstract Key |
KeyFactorySpi.engineTranslateKey(Key key)
翻译的重点对象,其供应商可能是未知的或潜在的不受信任的,在相应的关键对象这一关键厂。
|
Key |
KeyStore.getKey(String alias, char[] password)
返回与给定别名关联的密钥,使用给定的密码来恢复它。
|
Key |
KeyFactory.translateKey(Key key)
翻译的重点对象,其供应商可能是未知的或潜在的不受信任的,在相应的关键对象这一关键厂。
|
Modifier and Type | Method and Description |
---|---|
protected abstract <T extends KeySpec> |
KeyFactorySpi.engineGetKeySpec(Key key, 类<T> keySpec)
返回给定键对象的规范(关键材料)。
|
abstract void |
KeyStoreSpi.engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain)
将给定的密钥分配给给定的别名,用给定的密码保护它。
|
protected abstract Key |
KeyFactorySpi.engineTranslateKey(Key key)
翻译的重点对象,其供应商可能是未知的或潜在的不受信任的,在相应的关键对象这一关键厂。
|
<T extends KeySpec> |
KeyFactory.getKeySpec(Key key, 类<T> keySpec)
返回给定键对象的规范(关键材料)。
|
boolean |
AlgorithmConstraints.permits(Set<CryptoPrimitive> primitives, Key key)
确定是否密钥被授予指定的加密基元的权限。
|
boolean |
AlgorithmConstraints.permits(Set<CryptoPrimitive> primitives, String algorithm, Key key, AlgorithmParameters parameters)
确定一个算法和相应的密钥是否被授予指定的加密基元的权限。
|
void |
KeyStore.setKeyEntry(String alias, Key key, char[] password, Certificate[] chain)
将给定的密钥分配给给定的别名,用给定的密码保护它。
|
Key |
KeyFactory.translateKey(Key key)
翻译的重点对象,其供应商可能是未知的或潜在的不受信任的,在相应的关键对象这一关键厂。
|
Modifier and Type | Interface and Description |
---|---|
interface |
DSAPrivateKey
以DSA密钥的标准接口。
|
interface |
DSAPublicKey
以DSA公钥接口。
|
interface |
ECPrivateKey
一个椭圆曲线(欧共体)私钥的接口。
|
interface |
ECPublicKey
一个椭圆曲线(欧共体)公共密钥的接口。
|
interface |
RSAMultiPrimePrivateCrtKey
一个RSA多素数私钥的接口,定义在PKCS # 1 V2.1,使用中国剩余定理(CRT)信息的价值。
|
interface |
RSAPrivateCrtKey
一个RSA私钥的接口,定义在# PKCS 1标准,使用中国剩余定理(CRT)信息的价值。
|
interface |
RSAPrivateKey
一个RSA私钥接口。
|
interface |
RSAPublicKey
一个RSA公钥接口。
|
Modifier and Type | Interface and Description |
---|---|
interface |
SecretKey
一个秘密(对称)密钥。
|
Modifier and Type | Method and Description |
---|---|
Key |
KeyAgreement.doPhase(Key key, boolean lastPhase)
执行本密钥协议的下一阶段,该密钥协议的下一阶段是从该密钥协议中的另一方接收的给定密钥中执行的。
|
protected abstract Key |
KeyAgreementSpi.engineDoPhase(Key key, boolean lastPhase)
执行本密钥协议的下一阶段,该密钥协议的下一阶段是从该密钥协议中的另一方接收的给定密钥中执行的。
|
protected Key |
CipherSpi.engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)
打开先前包的关键。
|
Key |
Cipher.unwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)
打开先前包的关键。
|
Modifier and Type | Method and Description |
---|---|
Key |
KeyAgreement.doPhase(Key key, boolean lastPhase)
执行本密钥协议的下一阶段,该密钥协议的下一阶段是从该密钥协议中的另一方接收的给定密钥中执行的。
|
protected abstract Key |
KeyAgreementSpi.engineDoPhase(Key key, boolean lastPhase)
执行本密钥协议的下一阶段,该密钥协议的下一阶段是从该密钥协议中的另一方接收的给定密钥中执行的。
|
protected int |
CipherSpi.engineGetKeySize(Key key)
返回给定的密钥对象的密钥大小。
|
protected abstract void |
CipherSpi.engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
一个关键的初始化这个密码,一组算法参数,和一个随机源。
|
protected abstract void |
CipherSpi.engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
一个关键的初始化这个密码,一组算法参数,和一个随机源。
|
protected abstract void |
CipherSpi.engineInit(int opmode, Key key, SecureRandom random)
用钥匙和随机源初始化这个密码。
|
protected abstract void |
ExemptionMechanismSpi.engineInit(Key key)
一个关键的初始化这个免责机制。
|
protected abstract void |
ExemptionMechanismSpi.engineInit(Key key, AlgorithmParameters params)
用钥匙和一套算法参数初始化这个免责机制。
|
protected abstract void |
MacSpi.engineInit(Key key, AlgorithmParameterSpec params)
与给定的初始化MAC(秘密)的密钥和算法参数。
|
protected abstract void |
ExemptionMechanismSpi.engineInit(Key key, AlgorithmParameterSpec params)
用钥匙和一套算法参数初始化这个免责机制。
|
protected abstract void |
KeyAgreementSpi.engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)
初始化密钥协商与给定的键,设置算法参数,并随机源。
|
protected abstract void |
KeyAgreementSpi.engineInit(Key key, SecureRandom random)
初始化密钥协商的密钥和随机源。
|
protected byte[] |
CipherSpi.engineWrap(Key key)
包钥匙。
|
PKCS8EncodedKeySpec |
EncryptedPrivateKeyInfo.getKeySpec(Key decryptKey)
从加密的数据提取封闭pkcs8encodedkeyspec对象并返回它。
|
PKCS8EncodedKeySpec |
EncryptedPrivateKeyInfo.getKeySpec(Key decryptKey, Provider provider)
从加密的数据提取封闭pkcs8encodedkeyspec对象并返回它。
|
PKCS8EncodedKeySpec |
EncryptedPrivateKeyInfo.getKeySpec(Key decryptKey, String providerName)
从加密的数据提取封闭pkcs8encodedkeyspec对象并返回它。
|
Object |
SealedObject.getObject(Key key)
检索原始(封装的)对象。
|
Object |
SealedObject.getObject(Key key, String provider)
检索原始(封装的)对象。
|
void |
Cipher.init(int opmode, Key key)
一个关键的初始化这个密码。
|
void |
Cipher.init(int opmode, Key key, AlgorithmParameters params)
用钥匙和一套算法参数初始化这个密码。
|
void |
Cipher.init(int opmode, Key key, AlgorithmParameterSpec params)
用钥匙和一套算法参数初始化这个密码。
|
void |
Cipher.init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
一个关键的初始化这个密码,一组算法参数,和一个随机源。
|
void |
Cipher.init(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
一个关键的初始化这个密码,一组算法参数,和一个随机源。
|
void |
Cipher.init(int opmode, Key key, SecureRandom random)
用钥匙和随机源初始化这个密码。
|
void |
ExemptionMechanism.init(Key key)
一个关键的初始化这个免责机制。
|
void |
KeyAgreement.init(Key key)
初始化密钥协商与给定的关键,这是需要包含所有的算法参数的关键协议要求。
|
void |
Mac.init(Key key)
与给定的密钥初始化这个对象
Mac 。
|
void |
ExemptionMechanism.init(Key key, AlgorithmParameters params)
用钥匙和一套算法参数初始化这个免责机制。
|
void |
ExemptionMechanism.init(Key key, AlgorithmParameterSpec params)
用钥匙和一套算法参数初始化这个免责机制。
|
void |
KeyAgreement.init(Key key, AlgorithmParameterSpec params)
初始化密钥协商的密钥和算法参数的设置。
|
void |
Mac.init(Key key, AlgorithmParameterSpec params)
这
Mac 初始化对象与给定的密钥和算法参数。
|
void |
KeyAgreement.init(Key key, AlgorithmParameterSpec params, SecureRandom random)
初始化密钥协商与给定的键,设置算法参数,并随机源。
|
void |
KeyAgreement.init(Key key, SecureRandom random)
初始化密钥协商的密钥和随机源。
|
boolean |
ExemptionMechanism.isCryptoAllowed(Key key)
返回结果是否被豁免机制滴成功生成。
|
byte[] |
Cipher.wrap(Key key)
包钥匙。
|
Modifier and Type | Interface and Description |
---|---|
interface |
DHPrivateKey
一个Diffie-Hellman密钥的界面。
|
interface |
DHPublicKey
一个Diffie-Hellman公钥接口。
|
interface |
PBEKey
一个关键的接口扩展。
|
Modifier and Type | Class and Description |
---|---|
class |
SecretKeySpec
此类指定在提供程序独立的方式中的密钥密钥。
|
Modifier and Type | Class and Description |
---|---|
class |
KerberosKey
这个类封装了一个Kerberos主要长期密钥。
|
Modifier and Type | Method and Description |
---|---|
Key |
KeySelectorResult.getKey()
返回选定的键。
|
Modifier and Type | Method and Description |
---|---|
static KeySelector |
KeySelector.singletonKeySelector(Key key)
返回一个
KeySelector 总是选择指定的关键,无论
KeyInfo 传递给它的。
|
Constructor and Description |
---|
DOMSignContext(Key signingKey, Node parent)
创建一个具有指定的签名密钥和父节点
DOMSignContext 。
|
DOMSignContext(Key signingKey, Node parent, Node nextSibling)
创建一个具有指定签名密钥
DOMSignContext ,父母和下一个同级节点。
|
DOMValidateContext(Key validatingKey, Node node)
创建一个
DOMValidateContext 包含指定的关键节点。
|
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.