C# Класс Granados.Poderosa.KeyFormat.PrivateKeyLoader

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
LoadSSH1PrivateKey ( string passphrase, BigInteger &modulus, BigInteger &publicExponent, BigInteger &privateExponent, BigInteger &primeP, BigInteger &primeQ, BigInteger &crtCoefficient, string &comment ) : void

Read SSH1 private key parameters.

LoadSSH2PrivateKey ( string passphrase, KeyPair &keyPair, string &comment ) : void

Read SSH2 private key parameters.

PrivateKeyLoader ( string path ) : System

Constructor

ProbeFormat ( ) : PrivateKeyFileFormat

Detect file format of a SSH private key file.

Описание методов

LoadSSH1PrivateKey() публичный Метод

Read SSH1 private key parameters.
failed to parse
public LoadSSH1PrivateKey ( string passphrase, BigInteger &modulus, BigInteger &publicExponent, BigInteger &privateExponent, BigInteger &primeP, BigInteger &primeQ, BigInteger &crtCoefficient, string &comment ) : void
passphrase string passphrase for decrypt the key file
modulus BigInteger private key parameter is set
publicExponent BigInteger private key parameter is set
privateExponent BigInteger private key parameter is set
primeP BigInteger private key parameter is set
primeQ BigInteger private key parameter is set
crtCoefficient BigInteger private key parameter is set
comment string comment
Результат void

LoadSSH2PrivateKey() публичный Метод

Read SSH2 private key parameters.
failed to parse
public LoadSSH2PrivateKey ( string passphrase, KeyPair &keyPair, string &comment ) : void
passphrase string passphrase for decrypt the key file
keyPair Granados.PKI.KeyPair key pair is set
comment string comment is set. empty if it didn't exist
Результат void

PrivateKeyLoader() публичный Метод

Constructor
failed to read the key file
public PrivateKeyLoader ( string path ) : System
path string Path of a key file to load
Результат System

ProbeFormat() публичный Метод

Detect file format of a SSH private key file.
File I/O error
public ProbeFormat ( ) : PrivateKeyFileFormat
Результат PrivateKeyFileFormat