|
||||||||||
| 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(java.security.PublicKey pubkey,
java.security.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(java.security.PublicKey pubkey,
java.security.PrivateKey prvkey)
throws java.lang.Exception
pubkey - prvkey -
java.lang.Exception
void update(byte[] H,
int off,
int len)
throws java.lang.Exception
H - off - len -
java.lang.Exception
boolean verify(byte[] sig)
throws java.lang.Exception
sig -
java.lang.Exception
byte[] sign()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||