예제 #1
0
        // Static Methods

        public static Account Create(List <string> contactEmails)
        {
            var key = RsaKeyPair.New();

            return(new Account(key)
            {
                Contact = contactEmails
            });
        }
예제 #2
0
        // Ctor

        public Certificate(RsaKeyPair key = null)
        {
            // Generate new RSA key for certificate
            if (key == null)
            {
                Key = RsaKeyPair.New();
            }
            else
            {
                Key = key;
            }
        }