public class FormSignatureVerifier extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
FormSignatureVerifier.SignatureVerifyHandler |
| Constructor and Description |
|---|
FormSignatureVerifier(String oauthConsumerKey,
String oauthConsumerSecret) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isFormSigned(Form form) |
long |
verify(JID to,
Element form)
Verify signature of given form.
|
long |
verify(JID to,
Element form,
FormSignatureVerifier.SignatureVerifyHandler handler)
Verify signature of given form.
|
long |
verify(JID to,
Form form)
Verify signature of given form.
|
long |
verify(JID to,
Form form,
FormSignatureVerifier.SignatureVerifyHandler handler)
Verify signature of given form.
|
public long verify(JID to, Element form) throws FormSignerException
to - the full destination address, including resource, if any.form - signed Form to verify.FormSignerException - if signature is invalid or can't be checked.public long verify(JID to, Element form, FormSignatureVerifier.SignatureVerifyHandler handler) throws FormSignerException
to - the full destination address, including resource, if any.form - signed Form to verify.handler - handler to make additional verification (for example validate received oauth_token).FormSignerException - if signature is invalid or can't be checked.public long verify(JID to, Form form) throws FormSignerException
to - the full destination address, including resource, if any.form - signed Form to verify.FormSignerException - if signature is invalid or can't be checked.public long verify(JID to, Form form, FormSignatureVerifier.SignatureVerifyHandler handler) throws FormSignerException
to - the full destination address, including resource, if any.form - signed Form to verify.handler - handler to make additional verification (for example validate received oauth_token).FormSignerException - if signature is invalid or can't be checked.protected boolean isFormSigned(Form form)
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.