//----------------------------------------------------------------------- // // Copyright (c) Outercurve Foundation. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.OpenId.Messages { using System; using DotNetOpenAuth.Messaging; using DotNetOpenAuth.Messaging.Reflection; /// /// The successful unencrypted association response message. /// /// /// Association response messages are described in OpenID 2.0 section 8.2. This type covers section 8.2.2. /// internal class AssociateUnencryptedResponse : AssociateSuccessfulResponse { /// /// Initializes a new instance of the class. /// /// The OpenID version of the response message. /// The originating request. internal AssociateUnencryptedResponse(Version responseVersion, AssociateUnencryptedRequest originatingRequest) : base(responseVersion, originatingRequest) { SessionType = Protocol.Args.SessionType.NoEncryption; } /// /// Gets or sets the MAC key (shared secret) for this association, Base 64 (Josefsson, S., “The Base16, Base32, and Base64 Data Encodings,” .) [RFC3548] encoded. /// [MessagePart("mac_key", IsRequired = true, AllowEmpty = false)] internal byte[] MacKey { get; set; } } }