Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }