|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Identity
| Method Summary | |
|---|---|
void |
clear()
Disposes internally allocated data, like byte array for the private key. |
boolean |
decrypt()
Deprecated. The decryption should be done automatically in #setPassphase(byte[] passphrase) |
String |
getAlgName()
Returns the name of the key algorithm. |
String |
getName()
Returns the name of this identity. |
byte[] |
getPublicKeyBlob()
Returns the public-key blob. |
byte[] |
getSignature(byte[] data)
Signs on data with this identity, and returns the result. |
boolean |
isEncrypted()
Returns true if this identity is cyphered. |
boolean |
setPassphrase(byte[] passphrase)
Decrypts this identity with the specified pass-phrase. |
| Method Detail |
|---|
boolean setPassphrase(byte[] passphrase)
throws JSchException
passphrase - the pass-phrase for this identity.
JSchExceptionbyte[] getPublicKeyBlob()
byte[] getSignature(byte[] data)
data - data to be signed
boolean decrypt()
setPassphrase(byte[] passphrase)String getAlgName()
String getName()
IdentityRepository.
boolean isEncrypted()
void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||