|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PublicKey
Interface for public key implementations, such as RSAKey or
DSAKey. Such a key may be used to verify signatures.
| Method Summary | |
|---|---|
boolean |
verify(byte[] data,
int dataOffset,
int dataLength,
byte[] sig)
Verify a signature. |
boolean |
verify(byte[] data,
int dataOffset,
int dataLength,
byte[] sig,
int sigOffset,
int sigLength)
Verify a signature. |
| Method Detail |
|---|
boolean verify(byte[] data,
int dataOffset,
int dataLength,
byte[] sig,
int sigOffset,
int sigLength)
throws PublicKeyException
data - the data to be verifieddataOffset - offset into the data to begin verifyingdataLength - number of bytes to verifysig - buffer containing the signature to be verifiedsigOffset - offset of the signature in the buffersigLength - number of bytes in the signature
true if the signature is valid
PublicKeyException - if this isn't a proper public key, or the
signature is malformed
boolean verify(byte[] data,
int dataOffset,
int dataLength,
byte[] sig)
throws PublicKeyException
data - the data to be verifieddataOffset - offset into the data to begin verifyingdataLength - number of bytes to verifysig - the signature to be verified
true if the signature is valid
PublicKeyException - if this isn't a proper public key, or the
signature is malformed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||