//----------------------------------------------------------------------- // // Copyright (c) Outercurve Foundation. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.Messaging.Bindings { using System; /// /// An exception thrown when a signed message does not pass signature validation. /// [Serializable] internal class InvalidSignatureException : ProtocolException { /// /// Initializes a new instance of the class. /// /// The message with the invalid signature. public InvalidSignatureException(IProtocolMessage faultedMessage) : base(MessagingStrings.SignatureInvalid, faultedMessage) { } /// /// Initializes a new instance of the class. /// /// The /// that holds the serialized object data about the exception being thrown. /// The System.Runtime.Serialization.StreamingContext /// that contains contextual information about the source or destination. protected InvalidSignatureException( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } } }