Class: OpenID::Server::Decoder

Class | OpenID::Server::Decoder
In: | lib/openid/server.rb
Parent: | Object

I decode an incoming web request in to a OpenIDRequest.

### Methods

decode default_decoder new

### Attributes

server | [RW] |

### Public Class methods

new(server)

Construct a Decoder. The server is necessary because some replies reference their server.

### Public Instance methods

decode(query)

I transform query parameters into an OpenIDRequest.

If the query does not seem to be an OpenID request at all, I return nil.

Raises ProtocolError when the query does not seem to be a valid OpenID request.

default_decoder(message, server)

Called to decode queries when no handler for that mode is found.

This implementation always raises ProtocolError.

[Validate]