Package | Description |
---|---|
java.security |
Contains core language classes related to permission management.
|
java.security.cert |
Contains classes for certificate management.
|
Modifier and Type | Method and 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.
|
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.
|
Modifier and Type | Method and 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,
java.lang.String sigProvider)
Verifies that this certificate was signed using the private key that corresponds to the specified public key.
|