Class: OpenID::Server::Signatory

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

I sign things.

I also check signatures.

All my state is encapsulated in a store, which means I‘m not generally pickleable but I am easy to reconstruct.

### Methods

_dumb_key _normal_key create_association get_association invalidate new sign verify

### Attributes

secret_lifetime | [RW] | The number of seconds a secret remains valid. Defaults to 14 days.
store | [RW] |

### Public Class methods

_dumb_key()
_normal_key()
new(store)

Create a new Signatory. store is The back-end where my associations are stored.

### Public Instance methods

create_association(dumb=true, assoc_type='HMAC-SHA1')

Make a new association.

get_association(assoc_handle, dumb, checkExpiration=true)

Get the association with the specified handle.

invalidate(assoc_handle, dumb)

Invalidates the association with the given handle.

sign(response)

Sign a response.

I take an OpenIDResponse, create a signature for everything in its signed list, and return a new copy of the response object with that signature included.

verify(assoc_handle, message)

Verify that the signature for some data is valid.

[Validate]