C# Class Tamir.SharpSsh.jsch.KeyPair

Afficher le fichier Open project: soywiz/csharputils Class Usage Examples

Méthodes publiques

Méthode Description
KeyPair ( JSch jsch ) : System
decrypt ( String _passphrase ) : bool
dispose ( ) : void
genKeyPair ( JSch jsch, int type ) : KeyPair
genKeyPair ( JSch jsch, int type, int key_size ) : KeyPair
getFingerPrint ( ) : String
getKeySize ( ) : int
getKeyType ( ) : int
getPublicKeyBlob ( ) : byte[]
isEncrypted ( ) : bool
load ( JSch jsch, String prvkey ) : KeyPair
load ( JSch jsch, String prvkey, String pubkey ) : KeyPair
setPassphrase ( String passphrase ) : void
setPassphrase ( byte passphrase ) : void
writePrivateKey ( Stream outs ) : void
writePrivateKey ( String name ) : void
writePublicKey ( Stream outs, String comment ) : void
writePublicKey ( String name, String comment ) : void
writeSECSHPublicKey ( Stream outs, String comment ) : void
writeSECSHPublicKey ( String name, String comment ) : void

Private Methods

Méthode Description
Write ( Stream s, byte arr ) : void
a2b ( byte c ) : byte
b2a ( byte c ) : byte
countLength ( int len ) : int
decrypt ( byte data, byte passphrase, byte iv ) : byte[]
encrypt ( byte plain, byte _iv ) : byte[]
genCipher ( ) : Tamir.SharpSsh.jsch.Cipher
genHash ( ) : Tamir.SharpSsh.jsch.HASH
genKey ( byte passphrase, byte iv ) : byte[]
genRandom ( ) : Random
generate ( int key_size ) : void
getBegin ( ) : byte[]
getEnd ( ) : byte[]
getKeyTypeName ( ) : byte[]
getPrivateKey ( ) : byte[]
parse ( byte data ) : bool
writeINTEGER ( byte buf, int index, byte data ) : int
writeLength ( byte data, int index, int len ) : int
writeSEQUENCE ( byte buf, int index, int len ) : int

Method Details

KeyPair() public méthode

public KeyPair ( JSch jsch ) : System
jsch JSch
Résultat System

decrypt() public méthode

public decrypt ( String _passphrase ) : bool
_passphrase String
Résultat bool

dispose() public méthode

public dispose ( ) : void
Résultat void

genKeyPair() public static méthode

public static genKeyPair ( JSch jsch, int type ) : KeyPair
jsch JSch
type int
Résultat KeyPair

genKeyPair() public static méthode

public static genKeyPair ( JSch jsch, int type, int key_size ) : KeyPair
jsch JSch
type int
key_size int
Résultat KeyPair

getFingerPrint() public méthode

public getFingerPrint ( ) : String
Résultat String

getKeySize() public abstract méthode

public abstract getKeySize ( ) : int
Résultat int

getKeyType() public abstract méthode

public abstract getKeyType ( ) : int
Résultat int

getPublicKeyBlob() public méthode

public getPublicKeyBlob ( ) : byte[]
Résultat byte[]

isEncrypted() public méthode

public isEncrypted ( ) : bool
Résultat bool

load() public static méthode

public static load ( JSch jsch, String prvkey ) : KeyPair
jsch JSch
prvkey String
Résultat KeyPair

load() public static méthode

public static load ( JSch jsch, String prvkey, String pubkey ) : KeyPair
jsch JSch
prvkey String
pubkey String
Résultat KeyPair

setPassphrase() public méthode

public setPassphrase ( String passphrase ) : void
passphrase String
Résultat void

setPassphrase() public méthode

public setPassphrase ( byte passphrase ) : void
passphrase byte
Résultat void

writePrivateKey() public méthode

public writePrivateKey ( Stream outs ) : void
outs Stream
Résultat void

writePrivateKey() public méthode

public writePrivateKey ( String name ) : void
name String
Résultat void

writePublicKey() public méthode

public writePublicKey ( Stream outs, String comment ) : void
outs Stream
comment String
Résultat void

writePublicKey() public méthode

public writePublicKey ( String name, String comment ) : void
name String
comment String
Résultat void

writeSECSHPublicKey() public méthode

public writeSECSHPublicKey ( Stream outs, String comment ) : void
outs Stream
comment String
Résultat void

writeSECSHPublicKey() public méthode

public writeSECSHPublicKey ( String name, String comment ) : void
name String
comment String
Résultat void