软件包 | 描述 |
---|---|
java.security |
为安全框架提供类和接口。
|
java.security.interfaces |
生成RSA(Rivest,夏米尔提供的接口和Adleman AsymmetricCipher算法)键在RSA实验室的技术说明和# 1定义,与DSA(数字签名算法)键在NIST的fips-186定义。
|
javax.crypto.interfaces |
提供接口,如Diffie-Hellman密钥RSA实验室定义# PKCS 3。
|
javax.net.ssl |
为安全套接字包提供类。
|
javax.security.auth.x500 |
此包包含要用于存储主和X500 X500在主题私人证书课程。
|
Modifier and Type | Method and Description |
---|---|
protected abstract PrivateKey |
KeyFactorySpi.engineGeneratePrivate(KeySpec keySpec)
从所提供的关键规范(关键材料)生成一个私有密钥对象。
|
PrivateKey |
KeyFactory.generatePrivate(KeySpec keySpec)
从所提供的关键规范(关键材料)生成一个私有密钥对象。
|
PrivateKey |
KeyPair.getPrivate()
返回此密钥对的私钥组件的引用。
|
PrivateKey |
KeyStore.PrivateKeyEntry.getPrivateKey()
从这项得到
PrivateKey 。
|
PrivateKey |
Signer.getPrivateKey()
过时的。
返回此签名者的私钥。
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
SignatureSpi.engineInitSign(PrivateKey privateKey)
用指定的私钥签名操作初始化这个签名对象。
|
protected void |
SignatureSpi.engineInitSign(PrivateKey privateKey, SecureRandom random)
用指定的密钥和随机源签名操作初始化这个签名对象。
|
void |
Signature.initSign(PrivateKey privateKey)
初始化此对象的签名。
|
void |
Signature.initSign(PrivateKey privateKey, SecureRandom random)
初始化此对象的签名。
|
Constructor and Description |
---|
KeyPair(PublicKey publicKey, PrivateKey privateKey)
从给定的公钥和私钥构造一个密钥对。
|
PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)
构建一个与
PrivateKey 和相应的证书链
PrivateKeyEntry 。
|
PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain, Set<KeyStore.Entry.Attribute> attributes)
构建一个与
PrivateKey 和相应的证书链
PrivateKeyEntry 和相关条目属性。
|
SignedObject(Serializable object, PrivateKey signingKey, Signature signingEngine)
任何可序列化的对象构造一个signedobject。
|
Modifier and Type | Interface and Description |
---|---|
interface |
DSAPrivateKey
以DSA密钥的标准接口。
|
interface |
ECPrivateKey
一个椭圆曲线(欧共体)私钥的接口。
|
interface |
RSAMultiPrimePrivateCrtKey
一个RSA多素数私钥的接口,定义在PKCS # 1 V2.1,使用中国剩余定理(CRT)信息的价值。
|
interface |
RSAPrivateCrtKey
一个RSA私钥的接口,定义在# PKCS 1标准,使用中国剩余定理(CRT)信息的价值。
|
interface |
RSAPrivateKey
一个RSA私钥接口。
|
Modifier and Type | Interface and Description |
---|---|
interface |
DHPrivateKey
一个Diffie-Hellman密钥的界面。
|
Modifier and Type | Method and Description |
---|---|
PrivateKey |
X509KeyManager.getPrivateKey(String alias)
返回与给定别名关联的键。
|
Modifier and Type | Method and Description |
---|---|
PrivateKey |
X500PrivateCredential.getPrivateKey()
返回密钥。
|
Constructor and Description |
---|
X500PrivateCredential(X509Certificate cert, PrivateKey key)
创建一个x500privatecredential将X.509证书、私钥和密钥库的别名。
|
X500PrivateCredential(X509Certificate cert, PrivateKey key, String alias)
创建一个x500privatecredential将X.509证书、私钥和密钥库的别名。
|
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.