private PrivateKeySigner([NotNull] string privateKey) { if (privateKey == null) { throw new ArgumentNullException("privateKey"); } _key = OpenSslKey.DecodeOpenSSLPrivateKey(privateKey); }
PrivateKeySigner(string privateKey, SigningAlgorithm signingAlgorithm) { if (privateKey == null) { throw new ArgumentNullException("privateKey"); } _key = OpenSslKey.DecodeOpenSSLPrivateKey(privateKey); _algorithmInfo = new AlgorithmInfo(signingAlgorithm); }