public class OAuthValidator
extends net.oauth.SimpleOAuthValidator
| Constructor and Description |
|---|
OAuthValidator(OAuthProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
validateMessage(net.oauth.OAuthMessage message,
net.oauth.OAuthAccessor accessor)
Deprecated.
Overridden to deprecate it since we cannot hide it. at least make sure we won't use it
|
void |
validateMessage(net.oauth.OAuthMessage message,
net.oauth.OAuthAccessor accessor,
OAuthToken requestToken)
Overridden to validate the timestamp and nonces last since they have side-effects of storing
data about the message, so we have to make sure the message is valid before we do that.
|
protected void |
validateTimestamp(net.oauth.OAuthMessage message,
long timestamp,
OAuthToken token)
Overridden to delegate timestamp validation to the provider.
|
protected void |
validateTimestampAndNonce(net.oauth.OAuthMessage message,
OAuthToken token)
Throw an exception if the timestamp is out of range or the nonce has been
validated previously.
|
public OAuthValidator(OAuthProvider provider)
@Deprecated public void validateMessage(net.oauth.OAuthMessage message, net.oauth.OAuthAccessor accessor) throws net.oauth.OAuthException, IOException, URISyntaxException
validateMessage in interface net.oauth.OAuthValidatorvalidateMessage in class net.oauth.SimpleOAuthValidatornet.oauth.OAuthExceptionIOExceptionURISyntaxExceptionpublic void validateMessage(net.oauth.OAuthMessage message,
net.oauth.OAuthAccessor accessor,
OAuthToken requestToken)
throws net.oauth.OAuthException,
IOException,
URISyntaxException
message - messageaccessor - accessorrequestToken - OAuth tokenIOException - if I/O error occurredOAuthException - if error occurredURISyntaxException - uri parsing problemnet.oauth.OAuthExceptionprotected void validateTimestampAndNonce(net.oauth.OAuthMessage message,
OAuthToken token)
throws IOException,
net.oauth.OAuthProblemException
message - messagetoken - OAuth tokenIOException - if I/O error occurrednet.oauth.OAuthProblemException - if error occurredprotected void validateTimestamp(net.oauth.OAuthMessage message,
long timestamp,
OAuthToken token)
throws IOException,
net.oauth.OAuthProblemException
message - messagetimestamp - timestamptoken - OAuth tokenIOException - if I/O error occurrednet.oauth.OAuthProblemException - if error occurredCopyright © 2019 JBoss by Red Hat. All rights reserved.