Ejemplo n.º 1
0
        PrivateKeySigner(string privateKey, SigningAlgorithm signingAlgorithm)
        {
            if (privateKey == null)
            {
                throw new ArgumentNullException("privateKey");
            }

            _key = OpenSslKey.DecodeOpenSSLPrivateKey(privateKey);

            _algorithmInfo = new AlgorithmInfo(signingAlgorithm);
        }
Ejemplo n.º 2
0
 PrivateKeySigner(byte[] key, SigningAlgorithm signingAlgorithm)
 {
     _key           = key;
     _algorithmInfo = new AlgorithmInfo(signingAlgorithm);
 }
Ejemplo n.º 3
0
 PrivateKeySigner(byte[] key, SigningAlgorithm signingAlgorithm)
 {
     _key = key;
     _algorithmInfo = new AlgorithmInfo(signingAlgorithm);
 }
Ejemplo n.º 4
0
        PrivateKeySigner(string privateKey, SigningAlgorithm signingAlgorithm)
        {
            if (privateKey == null)
            {
                throw new ArgumentNullException("privateKey");
            }

            _key = OpenSslKey.DecodeOpenSSLPrivateKey(privateKey);

            _algorithmInfo = new AlgorithmInfo(signingAlgorithm);
        }