C# Class DotNetOpenAuth.OpenId.Messages.IndirectSignedResponse

Inheritance: DotNetOpenAuth.OpenId.Messages.IndirectResponseBase, ITamperResistantOpenIdMessage, IProtocolMessageWithExtensions
显示文件 Open project: Unroll-Me/DotNetOpenAuth Class Usage Examples

Private Properties

Property Type Description
GetReturnToArgument string
GetReturnToParameterNames IEnumerable
GetSignedMessageParts string>.IDictionary
IndirectSignedResponse System
IndirectSignedResponse System
IndirectSignedResponse System
IsQuerySubsetOf bool
VerifyReturnToMatchesRecipient void

Public Methods

Method Description
EnsureValidMessage ( ) : void

Checks the message state for conformity to the protocol specification and throws an exception if the message is invalid.

Some messages have required fields, or combinations of fields that must relate to each other in specialized ways. After deserializing a message, this method checks the state of the message to see if it conforms to the protocol.

Note that this property should not check signatures or perform any state checks outside this scope of this particular message.

Private Methods

Method Description
GetReturnToArgument ( string key ) : string

Gets the value of a named parameter in the return_to URL without signature protection.

This method will always return null on the Provider-side, since Providers cannot verify the private signature made by the relying party.

GetReturnToParameterNames ( ) : IEnumerable

Gets the names of the callback parameters added to the original authentication request without signature protection.

GetSignedMessageParts ( Channel channel ) : string>.IDictionary

Gets a dictionary of all the message part names and values that are included in the message signature.

IndirectSignedResponse ( DotNetOpenAuth.OpenId.Messages.CheckAuthenticationRequest previouslySignedMessage, Channel channel ) : System

Initializes a new instance of the IndirectSignedResponse class in order to perform signature verification at the Provider.

IndirectSignedResponse ( DotNetOpenAuth.OpenId.Messages.SignedResponseRequest request ) : System

Initializes a new instance of the IndirectSignedResponse class.

IndirectSignedResponse ( System.Version version, Uri relyingPartyReturnTo ) : System

Initializes a new instance of the IndirectSignedResponse class for unsolicited assertions.

IsQuerySubsetOf ( string superset, string subset ) : bool

Determines whether one querystring contains every key=value pair that another querystring contains.

VerifyReturnToMatchesRecipient ( ) : void

Verifies that the openid.return_to field matches the URL of the actual HTTP request.

From OpenId Authentication 2.0 section 11.1: To verify that the "openid.return_to" URL matches the URL that is processing this assertion: * The URL scheme, authority, and path MUST be the same between the two URLs. * Any query parameters that are present in the "openid.return_to" URL MUST also be present with the same values in the URL of the HTTP request the RP received.

Method Details

EnsureValidMessage() public method

Checks the message state for conformity to the protocol specification and throws an exception if the message is invalid.

Some messages have required fields, or combinations of fields that must relate to each other in specialized ways. After deserializing a message, this method checks the state of the message to see if it conforms to the protocol.

Note that this property should not check signatures or perform any state checks outside this scope of this particular message.

Thrown if the message is invalid.
public EnsureValidMessage ( ) : void
return void