BraintreeEncryption.Library.BouncyCastle.Crypto.Parameters.RsaKeyParameters.RsaKeyParameters C# (CSharp) Method

RsaKeyParameters() public method

public RsaKeyParameters ( bool isPrivate, BigInteger modulus, BigInteger exponent ) : System
isPrivate bool
modulus BraintreeEncryption.Library.BouncyCastle.Math.BigInteger
exponent BraintreeEncryption.Library.BouncyCastle.Math.BigInteger
return System
        public RsaKeyParameters(
            bool		isPrivate,
            BigInteger	modulus,
            BigInteger	exponent)
            : base(isPrivate)
        {
            if (modulus == null)
                throw new ArgumentNullException("modulus");
            if (exponent == null)
                throw new ArgumentNullException("exponent");
            if (modulus.SignValue <= 0)
                throw new ArgumentException("Not a valid RSA modulus", "modulus");
            if (exponent.SignValue <= 0)
                throw new ArgumentException("Not a valid RSA exponent", "exponent");

            this.modulus = modulus;
            this.exponent = exponent;
        }