Class: OpenID::Association

Class | OpenID::Association
In: | lib/openid/association.rb
Parent: | Object

An Association holds the shared secret between a relying party and an OpenID provider.

### Methods

== check_message_signature deserialize expires_in from_expires_in get_message_signature make_pairs new serialize sign sign_message

### Constants

FIELD_ORDER | = | [:version, :handle, :secret, :issued, :lifetime, :assoc_type,]

### Attributes

assoc_type | [R] |
handle | [R] |
issued | [R] |
lifetime | [R] |
secret | [R] |

### Public Class methods

deserialize(serialized)

Load a serialized Association

from_expires_in(expires_in, handle, secret, assoc_type)

Create an Association with an issued time of now

new(handle, secret, issued, lifetime, assoc_type)

### Public Instance methods

==(other)
check_message_signature(message)

Return whether the message‘s signature passes

expires_in(now=nil)

The number of seconds until this association expires

get_message_signature(message)

Get the signature for this message

make_pairs(message)

Generate the list of pairs that form the signed elements of the given message

serialize()

Serialize the association to a form that‘s consistent across JanRain OpenID libraries.

sign(pairs)

Generate a signature for a sequence of [key, value] pairs

sign_message(message)

Add a signature (and a signed list) to a message.

[Validate]