summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OpenId.Provider/OpenId/Messages/AssociateDiffieHellmanProviderResponse.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.OpenId.Provider/OpenId/Messages/AssociateDiffieHellmanProviderResponse.cs')
-rw-r--r--src/DotNetOpenAuth.OpenId.Provider/OpenId/Messages/AssociateDiffieHellmanProviderResponse.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.OpenId.Provider/OpenId/Messages/AssociateDiffieHellmanProviderResponse.cs b/src/DotNetOpenAuth.OpenId.Provider/OpenId/Messages/AssociateDiffieHellmanProviderResponse.cs
index 2e0a4e1..2cb3ab5 100644
--- a/src/DotNetOpenAuth.OpenId.Provider/OpenId/Messages/AssociateDiffieHellmanProviderResponse.cs
+++ b/src/DotNetOpenAuth.OpenId.Provider/OpenId/Messages/AssociateDiffieHellmanProviderResponse.cs
@@ -19,7 +19,7 @@ namespace DotNetOpenAuth.OpenId.Messages {
/// <remarks>
/// Association response messages are described in OpenID 2.0 section 8.2. This type covers section 8.2.3.
/// </remarks>
- internal class AssociateDiffieHellmanProviderResponse : AssociateDiffieHellmanResponse {
+ internal class AssociateDiffieHellmanProviderResponse : AssociateDiffieHellmanResponse, IAssociateSuccessfulResponseProvider {
/// <summary>
/// Initializes a new instance of the <see cref="AssociateDiffieHellmanProviderResponse"/> class.
/// </summary>
@@ -29,6 +29,16 @@ namespace DotNetOpenAuth.OpenId.Messages {
: base(responseVersion, originatingRequest) {
}
+ long IAssociateSuccessfulResponseProvider.ExpiresIn {
+ get { return this.ExpiresIn; }
+ set { this.ExpiresIn = value; }
+ }
+
+ string IAssociateSuccessfulResponseProvider.AssociationHandle {
+ get { return this.AssociationHandle; }
+ set { this.AssociationHandle = value; }
+ }
+
/// <summary>
/// Creates the association at the provider side after the association request has been received.
/// </summary>
@@ -42,7 +52,7 @@ namespace DotNetOpenAuth.OpenId.Messages {
/// The response message is updated to include the details of the created association by this method,
/// but the resulting association is <i>not</i> added to the association store and must be done by the caller.
/// </remarks>
- protected Association CreateAssociationAtProvider(AssociateRequest request, IProviderAssociationStore associationStore, ProviderSecuritySettings securitySettings) {
+ public Association CreateAssociationAtProvider(AssociateRequest request, IProviderAssociationStore associationStore, ProviderSecuritySettings securitySettings) {
var diffieHellmanRequest = request as AssociateDiffieHellmanRequest;
ErrorUtilities.VerifyInternal(diffieHellmanRequest != null, "Expected a DH request type.");