com.jcraft.jsch
Class IdentityFile

java.lang.Object
  extended by 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
           
 
Constructor Summary
IdentityFile(java.lang.String identity, JSch jsch)
           
 
Method Summary
(package private)  boolean decrypt_dss()
           
(package private)  boolean decrypt_rsa()
           
 boolean decrypt()
           
 java.lang.String getAlgName()
           
 java.lang.String getName()
           
(package private)  byte[] getPublicKeyBlob_dss()
           
(package private)  byte[] getPublicKeyBlob_rsa()
           
 byte[] getPublicKeyBlob()
           
(package private)  byte[] getSignature_dss(byte[] data)
           
(package private)  byte[] getSignature_rsa(byte[] data)
           
 byte[] getSignature(byte[] data)
           
 boolean isEncrypted()
           
 boolean setPassphrase(java.lang.String _passphrase)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identity

java.lang.String identity

key

byte[] key

iv

byte[] iv
Constructor Detail

IdentityFile

IdentityFile(java.lang.String identity,
             JSch jsch)
       throws JSchException
Throws:
JSchException
Method Detail

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.