Package tigase.form

## Class FormSigner

- java.lang.Object
- - tigase.form.FormSigner

-     public class FormSigner
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `FormSigner​(java.lang.String oauthToken, java.lang.String oauthTokenSecret, java.lang.String oauthConsumerKey, java.lang.String oauthConsumerSecret)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `signForm​(JID to, Form form)` | Sign given form with current time.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FormSigner

          public FormSigner​(java.lang.String oauthToken,
                            java.lang.String oauthTokenSecret,
                            java.lang.String oauthConsumerKey,
                            java.lang.String oauthConsumerSecret)

  - ### Method Detail

    - #### signForm

          public void signForm​(JID to,
                               Form form)
                        throws FormSignerException

      Sign given form with current time. Signature will be added to form.
      Parameters:
        `to` - the full destination address, including resource, if any.
        `form` - form form to sign.
      Throws:
        `FormSignerException` - when the key is invalid or the algorithm is not supported