com.jcraft.jsch
Class IdentityFile
java.lang.Object
com.jcraft.jsch.IdentityFile
- All Implemented Interfaces:
- Identity
class IdentityFile
- extends java.lang.Object
- implements Identity
|
Field Summary |
(package private) java.lang.String |
identity
|
(package private) byte[] |
iv
|
(package private) byte[] |
key
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
identity
java.lang.String identity
key
byte[] key
iv
byte[] iv
IdentityFile
IdentityFile(java.lang.String identity,
JSch jsch)
throws JSchException
- Throws:
JSchException
getAlgName
public java.lang.String getAlgName()
- Specified by:
getAlgName in interface Identity
setPassphrase
public boolean setPassphrase(java.lang.String _passphrase)
throws JSchException
- Specified by:
setPassphrase in interface Identity
- Throws:
JSchException
getPublicKeyBlob
public byte[] getPublicKeyBlob()
- Specified by:
getPublicKeyBlob in interface Identity
getPublicKeyBlob_rsa
byte[] getPublicKeyBlob_rsa()
getPublicKeyBlob_dss
byte[] getPublicKeyBlob_dss()
getSignature
public byte[] getSignature(byte[] data)
- Specified by:
getSignature in interface Identity
getSignature_rsa
byte[] getSignature_rsa(byte[] data)
getSignature_dss
byte[] getSignature_dss(byte[] data)
decrypt
public boolean decrypt()
- Specified by:
decrypt in interface Identity
decrypt_rsa
boolean decrypt_rsa()
decrypt_dss
boolean decrypt_dss()
isEncrypted
public boolean isEncrypted()
- Specified by:
isEncrypted in interface Identity
getName
public java.lang.String getName()
- Specified by:
getName in interface Identity
Copyright 2006 jcraft. All Rights Reserved.