|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SshPublicKey
Interface for SSH supported public keys.
| Method Summary | |
|---|---|
java.lang.String |
getAlgorithm()
Get the algorithm name for the public key. |
int |
getBitLength()
Get the bit length of the public key |
byte[] |
getEncoded()
Encode the public key into a blob of binary data, the encoded result will be passed into init to recreate the key. |
java.lang.String |
getFingerprint()
Return an SSH fingerprint of the public key |
void |
init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data. |
boolean |
verifySignature(byte[] signature,
byte[] data)
Verify the signature. |
| Method Detail |
|---|
void init(byte[] blob,
int start,
int len)
throws SshException
blob - start - len -
SshExceptionjava.lang.String getAlgorithm()
int getBitLength()
byte[] getEncoded()
throws SshException
SshException
java.lang.String getFingerprint()
throws SshException
SshException
boolean verifySignature(byte[] signature,
byte[] data)
throws SshException
signature - data -
true if the signature was produced by the corresponding
private key that owns this public key, otherwise false.
SshException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||