软件包 | 描述 |
---|---|
java.security |
为安全框架提供类和接口。
|
java.security.cert |
提供用于解析和管理证书的类和接口,证书撤销列表(CRL),认证路径。
|
javax.crypto |
提供加密操作的类和接口。
|
javax.crypto.spec |
提供关键规格和算法参数规格的类和接口。
|
javax.security.cert |
提供公钥证书的类。
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
SignatureSpi.engineInitSign(PrivateKey privateKey)
用指定的私钥签名操作初始化这个签名对象。
|
protected void |
SignatureSpi.engineInitSign(PrivateKey privateKey, SecureRandom random)
用指定的密钥和随机源签名操作初始化这个签名对象。
|
protected abstract void |
SignatureSpi.engineInitVerify(PublicKey publicKey)
用指定的公钥验证签名操作初始化这个对象。
|
protected abstract Key |
KeyFactorySpi.engineTranslateKey(Key key)
翻译的重点对象,其供应商可能是未知的或潜在的不受信任的,在相应的关键对象这一关键厂。
|
void |
Signature.initSign(PrivateKey privateKey)
初始化此对象的签名。
|
void |
Signature.initSign(PrivateKey privateKey, SecureRandom random)
初始化此对象的签名。
|
void |
Signature.initVerify(Certificate certificate)
初始化这个对象的验证,使用给定的证书的公钥。
|
void |
Signature.initVerify(PublicKey publicKey)
初始化这个对象的验证。
|
Key |
KeyFactory.translateKey(Key key)
翻译的重点对象,其供应商可能是未知的或潜在的不受信任的,在相应的关键对象这一关键厂。
|
boolean |
SignedObject.verify(PublicKey verificationKey, Signature verificationEngine)
在这signedobject验证签名的对象存储在有效的签名,与给定的验证密钥,使用指定的验证引擎。
|
Constructor and Description |
---|
SignedObject(Serializable object, PrivateKey signingKey, Signature signingEngine)
任何可序列化的对象构造一个signedobject。
|
Modifier and Type | Method and Description |
---|---|
abstract void |
X509CRL.verify(PublicKey key)
验证这个CRL签署使用对应于给定的公钥私钥。
|
abstract void |
Certificate.verify(PublicKey key)
验证该证书是使用对应于指定公共密钥的私钥签名的。
|
void |
X509CRL.verify(PublicKey key, Provider sigProvider)
验证这个CRL签署使用对应于给定的公钥私钥。
|
void |
Certificate.verify(PublicKey key, Provider sigProvider)
验证该证书是使用对应于指定公共密钥的私钥签名的。
|
void |
X509Certificate.verify(PublicKey key, Provider sigProvider)
验证该证书是使用对应于指定公共密钥的私钥签名的。
|
abstract void |
X509CRL.verify(PublicKey key, String sigProvider)
验证这个CRL签署使用对应于给定的公钥私钥。
|
abstract void |
Certificate.verify(PublicKey key, String sigProvider)
验证该证书是使用对应于指定公共密钥的私钥签名的。
|
Modifier and Type | Method and Description |
---|---|
Key |
KeyAgreement.doPhase(Key key, boolean lastPhase)
执行本密钥协议的下一阶段,该密钥协议的下一阶段是从该密钥协议中的另一方接收的给定密钥中执行的。
|
protected abstract Key |
KeyAgreementSpi.engineDoPhase(Key key, boolean lastPhase)
执行本密钥协议的下一阶段,该密钥协议的下一阶段是从该密钥协议中的另一方接收的给定密钥中执行的。
|
protected abstract SecretKey |
KeyAgreementSpi.engineGenerateSecret(String algorithm)
创建共享密钥,并将其作为所请求的算法类型的密钥对象返回。
|
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 abstract SecretKey |
SecretKeyFactorySpi.engineTranslateKey(SecretKey key)
翻译的重点对象,其供应商可能是未知的或潜在的不受信任的,在相应的关键对象这秘密工厂。
|
protected Key |
CipherSpi.engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)
打开先前包的关键。
|
protected byte[] |
CipherSpi.engineWrap(Key key)
包钥匙。
|
SecretKey |
KeyAgreement.generateSecret(String algorithm)
创建共享的秘密,并将其作为
SecretKey 对象指定的算法。
|
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, Certificate certificate)
从给定证书的公共密钥初始化这个密码。
|
void |
Cipher.init(int opmode, Certificate certificate, SecureRandom random)
从给定的证书和一个随机源的公共密钥初始化这个密码。
|
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)
初始化密钥协商的密钥和随机源。
|
SecretKey |
SecretKeyFactory.translateKey(SecretKey key)
翻译的重点对象,其供应商可能是未知的或潜在的不受信任的,在相应的关键对象这秘密工厂。
|
Key |
Cipher.unwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)
打开先前包的关键。
|
byte[] |
Cipher.wrap(Key key)
包钥匙。
|
Modifier and Type | Method and Description |
---|---|
static boolean |
DESedeKeySpec.isParityAdjusted(byte[] key, int offset)
检查给出的des-ede键,开始在
offset 包容,是平价调整。
|
static boolean |
DESKeySpec.isParityAdjusted(byte[] key, int offset)
检查给出的DES密钥材料,开始在
offset 包容,是平价调整。
|
static boolean |
DESKeySpec.isWeak(byte[] key, int offset)
检查给定的辅密钥材料是弱或半弱。
|
Constructor and Description |
---|
DESedeKeySpec(byte[] key)
利用
key 的前24个字节为des-ede关键材料产生了desedekeyspec对象。
|
DESedeKeySpec(byte[] key, int offset)
在
key 使用第一个24字节产生一个desedekeyspec对象,在
offset 包容的开始,对于des-ede关键材料。
|
DESKeySpec(byte[] key)
利用
key 的前8个字节为DES密钥的密钥材料产生了deskeyspec对象。
|
DESKeySpec(byte[] key, int offset)
在
key 使用第一个8字节产生一个deskeyspec对象,在
offset 包容的开始,对于DES密钥的密钥材料。
|
Modifier and Type | Method and Description |
---|---|
abstract void |
Certificate.verify(PublicKey key)
验证该证书是使用对应于指定公共密钥的私钥签名的。
|
abstract void |
Certificate.verify(PublicKey key, String sigProvider)
验证该证书是使用对应于指定公共密钥的私钥签名的。
|
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.