C# Class Granados.SSH2.SSH2UserAuthKey

Afficher le fichier Open project: poderosaproject/poderosa Class Usage Examples

Méthodes publiques

Méthode Description
FromSECSHStyleFile ( string filename, string passphrase ) : SSH2UserAuthKey
FromSECSHStyleStream ( Stream strm, string passphrase ) : SSH2UserAuthKey
GetPublicKeyBlob ( ) : byte[]
PassphraseToKey ( string passphrase, int length ) : byte[]
SSH2UserAuthKey ( KeyPair kp ) : Granados.Poderosa.KeyFormat
SSH2UserAuthKey ( KeyPair kp, string comment ) : Granados.Poderosa.KeyFormat
Sign ( byte data ) : byte[]
WritePrivatePartInSECSHStyleFile ( Stream dest, string comment, string passphrase ) : void
WritePublicPartInOpenSSHStyle ( Stream dest ) : void
WritePublicPartInSECSHStyle ( Stream dest, string comment ) : void

Private Methods

Méthode Description
FormatBase64EncodedPublicKeyBody ( ) : string
WriteKeyFileBlock ( StreamWriter sw, string data, bool escape_needed ) : void

Method Details

FromSECSHStyleFile() public static méthode

public static FromSECSHStyleFile ( string filename, string passphrase ) : SSH2UserAuthKey
filename string
passphrase string
Résultat SSH2UserAuthKey

FromSECSHStyleStream() public static méthode

public static FromSECSHStyleStream ( Stream strm, string passphrase ) : SSH2UserAuthKey
strm Stream
passphrase string
Résultat SSH2UserAuthKey

GetPublicKeyBlob() public méthode

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

PassphraseToKey() public static méthode

public static PassphraseToKey ( string passphrase, int length ) : byte[]
passphrase string
length int
Résultat byte[]

SSH2UserAuthKey() public méthode

public SSH2UserAuthKey ( KeyPair kp ) : Granados.Poderosa.KeyFormat
kp Granados.PKI.KeyPair
Résultat Granados.Poderosa.KeyFormat

SSH2UserAuthKey() public méthode

public SSH2UserAuthKey ( KeyPair kp, string comment ) : Granados.Poderosa.KeyFormat
kp Granados.PKI.KeyPair
comment string
Résultat Granados.Poderosa.KeyFormat

Sign() public méthode

public Sign ( byte data ) : byte[]
data byte
Résultat byte[]

WritePrivatePartInSECSHStyleFile() public méthode

public WritePrivatePartInSECSHStyleFile ( Stream dest, string comment, string passphrase ) : void
dest Stream
comment string
passphrase string
Résultat void

WritePublicPartInOpenSSHStyle() public méthode

public WritePublicPartInOpenSSHStyle ( Stream dest ) : void
dest Stream
Résultat void

WritePublicPartInSECSHStyle() public méthode

public WritePublicPartInSECSHStyle ( Stream dest, string comment ) : void
dest Stream
comment string
Résultat void