public SigningMessageEncoder(Signatory signatory) { if (signatory == null) throw new ArgumentNullException("signatory", "Must have a store to sign this request"); this.signatory = signatory; }
OpenIdProvider(IProviderAssociationStore store, Uri providerEndpoint, Uri requestUrl, IDictionary<string, string> query) { if (store == null) throw new ArgumentNullException("store"); if (providerEndpoint == null) throw new ArgumentNullException("providerEndpoint"); if (requestUrl == null) throw new ArgumentNullException("requestUrl"); if (query == null) throw new ArgumentNullException("query"); Settings = new ProviderSecuritySettings(); Endpoint = providerEndpoint; RequestUrl = requestUrl; Query = query; Signatory = new Signatory(store); Encoder = new SigningMessageEncoder(Signatory); store.ClearExpiredAssociations(); // every so often we should do this. }