软件包 | 描述 |
---|---|
java.security |
为安全框架提供类和接口。
|
java.security.cert |
提供用于解析和管理证书的类和接口,证书撤销列表(CRL),认证路径。
|
javax.security.cert |
提供公钥证书的类。
|
Modifier and Type | Method and Description |
---|---|
protected abstract byte[] |
SignatureSpi.engineSign()
返回到已更新的所有数据的签名字节。
|
protected int |
SignatureSpi.engineSign(byte[] outbuf, int offset, int len)
完成这个签名操作和存储造成签名字节缓冲区的设置
outbuf ,开始在
offset 。
|
protected abstract void |
SignatureSpi.engineUpdate(byte b)
更新要使用指定的字节签名或验证的数据。
|
protected abstract void |
SignatureSpi.engineUpdate(byte[] b, int off, int len)
更新要签名或验证的数据,使用指定的字节数组,从指定的偏移量开始。
|
protected abstract boolean |
SignatureSpi.engineVerify(byte[] sigBytes)
验证签名中的通过。
|
protected boolean |
SignatureSpi.engineVerify(byte[] sigBytes, int offset, int length)
将在指定的字节数中指定的字节数组中的签名进行验证,从指定的偏移量开始。
|
byte[] |
Signature.sign()
返回更新的所有数据的签名字节。
|
int |
Signature.sign(byte[] outbuf, int offset, int len)
完成签名操作和存储造成签名字节缓冲区的设置
outbuf ,开始在
offset 。
|
void |
Signature.update(byte b)
更新要由字节签名或验证的数据。
|
void |
Signature.update(byte[] data)
更新要签名或验证的数据,使用指定的字节数组。
|
void |
Signature.update(byte[] data, int off, int len)
更新要签名或验证的数据,使用指定的字节数组,从指定的偏移量开始。
|
void |
Signature.update(ByteBuffer data)
要签名的数据或使用指定验证更新ByteBuffer。
|
boolean |
Signature.verify(byte[] signature)
验证签名中的通过。
|
boolean |
Signature.verify(byte[] signature, int offset, int length)
将在指定的字节数中指定的字节数组中的签名进行验证,从指定的偏移量开始。
|
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 |
---|---|
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.