|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Signature
Signature interface for SSH used to sign or verify packets Usually wraps a javax.crypto.Signature object
Method Summary | |
---|---|
void |
init(PublicKey pubkey,
PrivateKey prvkey)
Initialize this signature with the given public key and private key. |
byte[] |
sign()
Compute the signature |
void |
update(byte[] H,
int off,
int len)
Update the computed signature with the given data |
boolean |
verify(byte[] sig)
Verify against the given signature |
Method Detail |
---|
void init(PublicKey pubkey, PrivateKey prvkey) throws Exception
pubkey
- prvkey
-
Exception
void update(byte[] H, int off, int len) throws Exception
H
- off
- len
-
Exception
boolean verify(byte[] sig) throws Exception
sig
-
Exception
byte[] sign() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |