| net.schmizz.sshj.signature.Signature |
Known Indirect Subclasses
|
Signature interface for SSH used to sign or verify data. Usually wraps a javax.crypto.Signature object.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Initialize this signature with the given public key and private key.
| |||||||||||
Compute the signature.
| |||||||||||
Update the computed signature with the given data.
| |||||||||||
Verify against the given signature.
| |||||||||||
Initialize this signature with the given public key and private key. If the private key is null, only signature verification can be performed.
| pubkey | (null-ok) specify in case verification is needed |
|---|---|
| prvkey | (null-ok) specify in case signing is needed |
Compute the signature.
Update the computed signature with the given data.
| H | Byte-array to update with |
|---|---|
| off | Offset within the array |
| len | Length until which to compute |
Convenience method, same as calling update(byte[], int, int) with offset as 0 and H.length.
| H | The byte-array to update with |
|---|
Verify against the given signature.
| sig | The signature to verify against |
|---|
true on successful verification, false on failure