SignatureCalculator¶
-
public class
SignatureCalculator
¶
Methods¶
calculateSignature¶
setOauthConsumerKey¶
setOauthConsumerSecret¶
setOauthToken¶
setOauthTokenSecret¶
sign¶
sign¶
-
public void
sign
(JID to, String nonce, long timestamp, Form form)¶ Sign given Form. Signature will be added to form.
Parameters: - to – the full destination address, including resource, if any.
- nonce – A nonce value that the client has to set. Can be a random alphanumerical string.
- timestamp – Number of seconds since 1st of January 1970, 00:00:00 GMT. The client has to set this at the time of signature.
- form – form to sign.