Package | Description |
---|---|
java.security |
Provides the classes and interfaces for the security framework.
|
java.security.cert |
Provides classes and interfaces for parsing and managing
certificates, certificate revocation lists (CRLs), and
certification paths.
|
javax.security.cert |
Provides classes for public key certificates.
|
Modifier and Type | Method | Description |
---|---|---|
protected abstract byte[] |
SignatureSpi.engineSign ()
Returns the signature bytes of all the data
updated so far.
|
|
protected int |
SignatureSpi.engineSign (byte[] outbuf,
int offset,
int len)
Finishes this signature operation and stores the resulting signature
bytes in the provided buffer
outbuf , starting at
offset . |
|
protected abstract void |
SignatureSpi.engineUpdate (byte b)
Updates the data to be signed or verified
using the specified byte.
|
|
protected abstract void |
SignatureSpi.engineUpdate (byte[] b,
int off,
int len)
Updates the data to be signed or verified, using the
specified array of bytes, starting at the specified offset.
|
|
protected abstract boolean |
SignatureSpi.engineVerify (byte[] sigBytes)
Verifies the passed-in signature.
|
|
protected boolean |
SignatureSpi.engineVerify (byte[] sigBytes,
int offset,
int length)
Verifies the passed-in signature in the specified array
of bytes, starting at the specified offset.
|
|
byte[] |
Signature.sign ()
Returns the signature bytes of all the data updated.
|
|
int |
Signature.sign (byte[] outbuf,
int offset,
int len)
Finishes the signature operation and stores the resulting signature
bytes in the provided buffer
outbuf , starting at
offset . |
|
void |
Signature.update (byte b)
Updates the data to be signed or verified by a byte.
|
|
void |
Signature.update (byte[] data)
Updates the data to be signed or verified, using the specified
array of bytes.
|
|
void |
Signature.update (byte[] data,
int off,
int len)
Updates the data to be signed or verified, using the specified
array of bytes, starting at the specified offset.
|
|
void |
Signature.update (ByteBuffer data)
Updates the data to be signed or verified using the specified
ByteBuffer.
|
|
boolean |
Signature.verify (byte[] signature)
Verifies the passed-in signature.
|
|
boolean |
Signature.verify (byte[] signature,
int offset,
int length)
Verifies the passed-in signature in the specified array
of bytes, starting at the specified offset.
|
|
boolean |
SignedObject.verify (PublicKey verificationKey,
Signature verificationEngine)
Verifies that the signature in this SignedObject is the valid
signature for the object stored inside, with the given
verification key, using the designated verification engine.
|
Constructor | Description |
---|---|
SignedObject (Serializable object,
PrivateKey signingKey,
Signature signingEngine)
Constructs a SignedObject from any Serializable object.
|
Modifier and Type | Method | Description |
---|---|---|
abstract void |
X509CRL.verify (PublicKey key)
Verifies that this CRL was signed using the
private key that corresponds to the given public key.
|
|
abstract void |
Certificate.verify (PublicKey key)
Verifies that this certificate was signed using the
private key that corresponds to the specified public key.
|
|
void |
X509CRL.verify (PublicKey key,
Provider sigProvider)
Verifies that this CRL was signed using the
private key that corresponds to the given public key.
|
|
void |
X509Certificate.verify (PublicKey key,
Provider sigProvider)
Verifies that this certificate was signed using the
private key that corresponds to the specified public key.
|
|
void |
Certificate.verify (PublicKey key,
Provider sigProvider)
Verifies that this certificate was signed using the
private key that corresponds to the specified public key.
|
|
abstract void |
X509CRL.verify (PublicKey key,
String sigProvider)
Verifies that this CRL was signed using the
private key that corresponds to the given public key.
|
|
abstract void |
Certificate.verify (PublicKey key,
String sigProvider)
Verifies that this certificate was signed using the
private key that corresponds to the specified public key.
|
Modifier and Type | Method | Description |
---|---|---|
abstract void |
Certificate.verify (PublicKey key)
Verifies that this certificate was signed using the
private key that corresponds to the specified public key.
|
|
abstract void |
Certificate.verify (PublicKey key,
String sigProvider)
Verifies that this certificate was signed using the
private key that corresponds to the specified public key.
|
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, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
Scripting on this page tracks web page traffic, but does not change the content in any way.