Exemple #1
0
        public AsymmetricKeyPair GenerateInterServerKeyPair(bool useDefault = false)
        {
            if (!useDefault)
            {
                return(AsymmetricKeyUtils.Generate());
            }

            return(new AsymmetricKeyPair
            {
                PublicKey = DefaultInterServerPublicKey,
                PrivateKey = DefaultInterServerPrivateKey
            });
        }
Exemple #2
0
        public AsymmetricKeyPair GenerateLicenseKeyPair(bool useDefault = false)
        {
            if (!useDefault)
            {
                return(AsymmetricKeyUtils.Generate());
            }

            return(new AsymmetricKeyPair
            {
                PublicKey = DefaultLicensePublicKey,
                PrivateKey = DefaultLicensePrivateKey
            });
        }
Exemple #3
0
        public AsymmetricKeyPair GenerateUserTokenKeyPair(bool useDefault = false)
        {
            if (!useDefault)
            {
                return(AsymmetricKeyUtils.Generate());
            }

            return(new AsymmetricKeyPair
            {
                PublicKey = DefaultUserTokenPublicKey,
                PrivateKey = DefaultUserTokenPrivateKey
            });
        }