Class Mechanize::Form::Keygen
In: lib/mechanize/form/keygen.rb
Parent: Mechanize::Form::Field

This class represents a keygen (public / private key generator) found in a Form. The field will automatically generate a key pair and compute its own value to match the challenge. Call key to access the public/private key pair.

Methods

generate_key   new  

Attributes

challenge  [R]  The challenge for this <keygen>.
key  [R]  The key associated with this <keygen> tag.

Public Class methods

Public Instance methods

Generates a key pair and sets the field‘s value.

[Validate]