//-----------------------------------------------------------------------
//
// Copyright (c) Outercurve Foundation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.OpenId.Messages {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DotNetOpenAuth.Messaging;
///
/// An OpenID direct request from Relying Party to Provider to initiate an association that uses Diffie-Hellman encryption.
///
internal class AssociateDiffieHellmanProviderRequest : AssociateDiffieHellmanRequest, IAssociateRequestProvider {
///
/// Initializes a new instance of the class.
///
/// The OpenID version this message must comply with.
/// The OpenID Provider endpoint.
internal AssociateDiffieHellmanProviderRequest(Version version, Uri providerEndpoint)
: base(version, providerEndpoint) {
}
///
/// Creates a Provider's response to an incoming association request.
///
///
/// The appropriate association response message.
///
public IProtocolMessage CreateResponseCore() {
var response = new AssociateDiffieHellmanProviderResponse(this.Version, this);
response.AssociationType = this.AssociationType;
return response;
}
}
}