예제 #1
0
        public SigningMessageEncoder(Signatory signatory)
        {
            if (signatory == null)
                throw new ArgumentNullException("signatory", "Must have a store to sign this request");

            this.signatory = signatory;
        }
예제 #2
0
 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.
 }