public interface Identity
限定符和类型 | 方法和说明 |
---|---|
void |
clear()
Disposes internally allocated data, like byte array for the private key.
|
boolean |
decrypt()
已过时。
The decryption should be done automatically in #setPassphase(byte[] passphrase)
|
java.lang.String |
getAlgName()
Returns the name of the key algorithm.
|
java.lang.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.
|
boolean setPassphrase(byte[] passphrase) throws JSchException
passphrase
- the pass-phrase for this identity.JSchException
byte[] getPublicKeyBlob()
byte[] getSignature(byte[] data)
data
- data to be signedboolean decrypt()
java.lang.String getAlgName()
java.lang.String getName()
IdentityRepository
.boolean isEncrypted()
void clear()