软件包 | 描述 |
---|---|
java.security |
为安全框架提供类和接口。
|
java.security.cert |
提供用于解析和管理证书的类和接口,证书撤销列表(CRL),认证路径。
|
java.security.interfaces |
生成RSA(Rivest,夏米尔提供的接口和Adleman AsymmetricCipher算法)键在RSA实验室的技术说明和# 1定义,与DSA(数字签名算法)键在NIST的fips-186定义。
|
javax.crypto.interfaces |
提供接口,如Diffie-Hellman密钥RSA实验室定义# PKCS 3。
|
javax.security.cert |
提供公钥证书的类。
|
javax.xml.crypto.dsig.keyinfo |
解析和处理
KeyInfo 元素和结构的类。
|
Modifier and Type | Method and Description |
---|---|
protected abstract PublicKey |
KeyFactorySpi.engineGeneratePublic(KeySpec keySpec)
从所提供的关键规范(关键材料)生成公共密钥对象。
|
PublicKey |
KeyFactory.generatePublic(KeySpec keySpec)
从所提供的关键规范(关键材料)生成公共密钥对象。
|
PublicKey |
KeyPair.getPublic()
返回此键对的公共密钥组件的引用。
|
PublicKey |
Identity.getPublicKey()
过时的。
返回此身份的公钥。
|
PublicKey |
Certificate.getPublicKey()
过时的。
返回由保证人保证的主密钥对的密钥。
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
SignatureSpi.engineInitVerify(PublicKey publicKey)
用指定的公钥验证签名操作初始化这个对象。
|
abstract Identity |
IdentityScope.getIdentity(PublicKey key)
过时的。
用指定的公共密钥检索身份。
|
void |
Signature.initVerify(PublicKey publicKey)
初始化这个对象的验证。
|
void |
Identity.setPublicKey(PublicKey key)
过时的。
设置此身份的公共密钥。
|
boolean |
SignedObject.verify(PublicKey verificationKey, Signature verificationEngine)
在这signedobject验证签名的对象存储在有效的签名,与给定的验证密钥,使用指定的验证引擎。
|
Constructor and Description |
---|
KeyPair(PublicKey publicKey, PrivateKey privateKey)
从给定的公钥和私钥构造一个密钥对。
|
Modifier and Type | Method and Description |
---|---|
PublicKey |
TrustAnchor.getCAPublicKey()
返回最值得信赖的约的公钥。
|
PublicKey |
PKIXCertPathValidatorResult.getPublicKey()
返回认证路径的主题(目标)的公钥(如果适用的话),包括任何继承的公共密钥参数。
|
abstract PublicKey |
Certificate.getPublicKey()
从该证书中获取公钥。
|
PublicKey |
X509CertSelector.getSubjectPublicKey()
返回subjectpublickey准则。
|
Modifier and Type | Method and Description |
---|---|
void |
X509CertSelector.setSubjectPublicKey(PublicKey key)
集subjectpublickey准则。
|
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)
验证该证书是使用对应于指定公共密钥的私钥签名的。
|
Constructor and Description |
---|
PKIXCertPathBuilderResult(CertPath certPath, TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
创建包含指定的参数
PKIXCertPathBuilderResult 实例。
|
PKIXCertPathValidatorResult(TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
创建一个实例
PKIXCertPathValidatorResult 包含指定的参数。
|
TrustAnchor(String caName, PublicKey pubKey, byte[] nameConstraints)
创建一个实例
TrustAnchor 哪里最受信任的CA被指定为一个可分辨名称和公钥。
|
TrustAnchor(X500Principal caPrincipal, PublicKey pubKey, byte[] nameConstraints)
创建一个实例
TrustAnchor 哪里最受信任的CA被指定为一个x500principal和公钥。
|
Modifier and Type | Interface and Description |
---|---|
interface |
DSAPublicKey
以DSA公钥接口。
|
interface |
ECPublicKey
一个椭圆曲线(欧共体)公共密钥的接口。
|
interface |
RSAPublicKey
一个RSA公钥接口。
|
Modifier and Type | Interface and Description |
---|---|
interface |
DHPublicKey
一个Diffie-Hellman公钥接口。
|
Modifier and Type | Method and Description |
---|---|
abstract PublicKey |
Certificate.getPublicKey()
从该证书中获取公钥。
|
Modifier and Type | Method and Description |
---|---|
abstract void |
Certificate.verify(PublicKey key)
验证该证书是使用对应于指定公共密钥的私钥签名的。
|
abstract void |
Certificate.verify(PublicKey key, String sigProvider)
验证该证书是使用对应于指定公共密钥的私钥签名的。
|
Modifier and Type | Method and Description |
---|---|
PublicKey |
KeyValue.getPublicKey()
返回该
KeyValue 公钥。
|
Modifier and Type | Method and Description |
---|---|
abstract KeyValue |
KeyInfoFactory.newKeyValue(PublicKey key)
创建从指定的公钥
KeyValue 。
|
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.