blob: 00c9a6cd3c0ecf4afc60662402ade2408e987c7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
//-----------------------------------------------------------------------
// <copyright file="AssociateDiffieHellmanProviderRequest.cs" company="Outercurve Foundation">
// Copyright (c) Outercurve Foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.OpenId.Messages {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DotNetOpenAuth.Messaging;
/// <summary>
/// An OpenID direct request from Relying Party to Provider to initiate an association that uses Diffie-Hellman encryption.
/// </summary>
internal class AssociateDiffieHellmanProviderRequest : AssociateDiffieHellmanRequest, IAssociateRequestProvider {
/// <summary>
/// Initializes a new instance of the <see cref="AssociateDiffieHellmanProviderRequest"/> class.
/// </summary>
/// <param name="version">The OpenID version this message must comply with.</param>
/// <param name="providerEndpoint">The OpenID Provider endpoint.</param>
internal AssociateDiffieHellmanProviderRequest(Version version, Uri providerEndpoint)
: base(version, providerEndpoint) {
}
/// <summary>
/// Creates a Provider's response to an incoming association request.
/// </summary>
/// <returns>
/// The appropriate association response message.
/// </returns>
public IProtocolMessage CreateResponseCore() {
var response = new AssociateDiffieHellmanProviderResponse(this.Version, this);
response.AssociationType = this.AssociationType;
return response;
}
}
}
|