public HmacSha1Signature(string baseString, ClientCredentials credentials, Token token = null) { this.baseString = baseString; this.credentials = credentials; this.token = token; }
private string TokenSharedSecret(Token token) { string secret = token != null ? token.Secret : String.Empty; return encoder.Encode(secret); }
public PlainTextSignature(ClientCredentials credentials, Token token = null) { this.credentials = credentials; this.token = token; }
private string GenerateSignature(ClientCredentials credentials, Token token) { return String.Join("&", new string[] { ClientSharedSecret(credentials), TokenSharedSecret(token) }); }