blob: dad47be817fd8fac93461c682e76d88224980aa5 (
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
|
//-----------------------------------------------------------------------
// <copyright file="AssociateUnencryptedResponseRelyingParty.cs" company="Andrew Arnott">
// Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.OpenId.Messages {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
internal class AssociateUnencryptedResponseRelyingParty : AssociateUnencryptedResponse {
/// <summary>
/// Initializes a new instance of the <see cref="AssociateUnencryptedResponseRelyingParty"/> class.
/// </summary>
/// <param name="version">The version.</param>
/// <param name="request">The request.</param>
internal AssociateUnencryptedResponseRelyingParty(Version version, AssociateUnencryptedRequest request)
: base(version, request) {
}
/// <summary>
/// Called to create the Association based on a request previously given by the Relying Party.
/// </summary>
/// <param name="request">The prior request for an association.</param>
/// <returns>The created association.</returns>
protected Association CreateAssociationAtRelyingParty(AssociateRequest request) {
Association association = HmacShaAssociation.Create(Protocol, this.AssociationType, this.AssociationHandle, this.MacKey, TimeSpan.FromSeconds(this.ExpiresIn));
return association;
}
}
}
|