C# 클래스 Tamir.SharpSsh.jsch.KeyPair

파일 보기 프로젝트 열기: soywiz/csharputils 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

KeyPair() 공개 메소드

public KeyPair ( JSch jsch ) : System
jsch JSch
리턴 System

decrypt() 공개 메소드

public decrypt ( String _passphrase ) : bool
_passphrase String
리턴 bool

dispose() 공개 메소드

public dispose ( ) : void
리턴 void

genKeyPair() 공개 정적인 메소드

public static genKeyPair ( JSch jsch, int type ) : KeyPair
jsch JSch
type int
리턴 KeyPair

genKeyPair() 공개 정적인 메소드

public static genKeyPair ( JSch jsch, int type, int key_size ) : KeyPair
jsch JSch
type int
key_size int
리턴 KeyPair

getFingerPrint() 공개 메소드

public getFingerPrint ( ) : String
리턴 String

getKeySize() 공개 추상적인 메소드

public abstract getKeySize ( ) : int
리턴 int

getKeyType() 공개 추상적인 메소드

public abstract getKeyType ( ) : int
리턴 int

getPublicKeyBlob() 공개 메소드

public getPublicKeyBlob ( ) : byte[]
리턴 byte[]

isEncrypted() 공개 메소드

public isEncrypted ( ) : bool
리턴 bool

load() 공개 정적인 메소드

public static load ( JSch jsch, String prvkey ) : KeyPair
jsch JSch
prvkey String
리턴 KeyPair

load() 공개 정적인 메소드

public static load ( JSch jsch, String prvkey, String pubkey ) : KeyPair
jsch JSch
prvkey String
pubkey String
리턴 KeyPair

setPassphrase() 공개 메소드

public setPassphrase ( String passphrase ) : void
passphrase String
리턴 void

setPassphrase() 공개 메소드

public setPassphrase ( byte passphrase ) : void
passphrase byte
리턴 void

writePrivateKey() 공개 메소드

public writePrivateKey ( Stream outs ) : void
outs Stream
리턴 void

writePrivateKey() 공개 메소드

public writePrivateKey ( String name ) : void
name String
리턴 void

writePublicKey() 공개 메소드

public writePublicKey ( Stream outs, String comment ) : void
outs Stream
comment String
리턴 void

writePublicKey() 공개 메소드

public writePublicKey ( String name, String comment ) : void
name String
comment String
리턴 void

writeSECSHPublicKey() 공개 메소드

public writeSECSHPublicKey ( Stream outs, String comment ) : void
outs Stream
comment String
리턴 void

writeSECSHPublicKey() 공개 메소드

public writeSECSHPublicKey ( String name, String comment ) : void
name String
comment String
리턴 void