//----------------------------------------------------------------------- // // Copyright (c) Outercurve Foundation. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.OpenId.ChannelElements { using System; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Contracts; using System.Globalization; using System.Linq; using System.Net.Security; using System.Web; using DotNetOpenAuth.Loggers; using DotNetOpenAuth.Messaging; using DotNetOpenAuth.Messaging.Bindings; using DotNetOpenAuth.Messaging.Reflection; using DotNetOpenAuth.OpenId.Messages; /// /// Code contract for the class. /// [ContractClassFor(typeof(SigningBindingElement))] internal abstract class SigningBindingElementContract : SigningBindingElement { /// /// Verifies the signature by unrecognized handle. /// /// The message. /// The signed message. /// The protections applied. /// /// The applied protections. /// protected override MessageProtections VerifySignatureByUnrecognizedHandle(IProtocolMessage message, ITamperResistantOpenIdMessage signedMessage, MessageProtections protectionsApplied) { throw new NotImplementedException(); } /// /// Gets the association to use to sign or verify a message. /// /// The message to sign or verify. /// /// The association to use to sign or verify the message. /// protected override Association GetAssociation(ITamperResistantOpenIdMessage signedMessage) { Requires.NotNull(signedMessage, "signedMessage"); throw new NotImplementedException(); } /// /// Gets a specific association referenced in a given message's association handle. /// /// The signed message whose association handle should be used to lookup the association to return. /// /// The referenced association; or null if such an association cannot be found. /// protected override Association GetSpecificAssociation(ITamperResistantOpenIdMessage signedMessage) { Requires.NotNull(signedMessage, "signedMessage"); throw new NotImplementedException(); } } }