Пример #1
0
	    public OAuthParameters(
			ConsumerKey key, 
			TokenKey tokenKey, 
			string signatureMethod, 
			TimestampSequence timestamps, 
			NonceSequence nonces, 
			string signature, 
			string version,
            string verifier = null,
            string session = null,
            string callback = null
		)
        {
    	    _key = key;
            _tokenKey = tokenKey;
            _signatureMethod = signatureMethod;
    	    _signature = signature;
	        _session = session;
	        _verifier = verifier;
	        _version = version ?? "1.0";

    	    _nonce = nonces.Next();
    	    _timestamp = timestamps.Next();
            _callback = callback;
        }
Пример #2
0
        public OAuthParameters(
            ConsumerKey key,
            TokenKey tokenKey,
            string signatureMethod,
            TimestampSequence timestamps,
            NonceSequence nonces,
            string signature,
            string version,
            string verifier = null,
            string session  = null,
            bool renewToken = false
            )
        {
            _key             = key;
            _tokenKey        = tokenKey;
            _signatureMethod = signatureMethod;
            _signature       = signature;
            _session         = session;
            _verifier        = verifier;
            _version         = version ?? "1.0";

            _nonce      = nonces.Next();
            _timestamp  = timestamps.Next();
            _renewToken = renewToken;
        }
Пример #3
0
        public OAuthParameters(
			ConsumerKey key, 
			TokenKey tokenKey, 
			string signatureMethod, 
			TimestampSequence timestamps, 
			NonceSequence nonces, 
			string signature, 
			string version
		)
        {
            _key = key;
            _tokenKey = tokenKey;
            _signatureMethod = signatureMethod;
            _signature = signature;
            _version = version ?? "1.0";

            _nonce = nonces.Next();
            _timestamp = timestamps.Next();
        }
Пример #4
0
        public OAuthParameters(
            ConsumerKey key,
            TokenKey tokenKey,
            string signatureMethod,
            TimestampSequence timestamps,
            NonceSequence nonces,
            string signature,
            string version
            )
        {
            _key             = key;
            _tokenKey        = tokenKey;
            _signatureMethod = signatureMethod;
            _signature       = signature;
            _version         = version ?? "1.0";

            _nonce     = nonces.Next();
            _timestamp = timestamps.Next();
        }