Package | Description |
---|---|
net.oauth |
Fundamental classes and algorithms for implementing OAuth.
|
net.oauth.client |
Classes for implementing an OAuth Consumer; that is a client that requests
access to protected resources.
|
net.oauth.signature |
Classes to compute and verify digital signatures.
|
Modifier and Type | Class and Description |
---|---|
class |
OAuthProblemException
An OAuth-related problem, described using a set of named parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
OAuthMessage.addRequiredParameters(OAuthAccessor accessor)
Add some of the parameters needed to request access to a protected
resource, if they aren't already in the message.
|
protected void |
SimpleOAuthValidator.checkSingleParameters(OAuthMessage message)
Throw an exception if any SINGLE_PARAMETERS occur repeatedly.
|
OAuthMessage |
OAuthAccessor.newRequestMessage(String method,
String url,
Collection<? extends Map.Entry> parameters) |
OAuthMessage |
OAuthAccessor.newRequestMessage(String method,
String url,
Collection<? extends Map.Entry> parameters,
InputStream body)
Construct a request message containing the given parameters but no body.
|
void |
OAuthMessage.sign(OAuthAccessor accessor)
Add a signature to the message.
|
void |
SimpleOAuthValidator.validateMessage(OAuthMessage message,
OAuthAccessor accessor) |
void |
OAuthValidator.validateMessage(OAuthMessage message,
OAuthAccessor accessor)
Check that the given message from the given accessor is valid.
|
protected void |
SimpleOAuthValidator.validateSignature(OAuthMessage message,
OAuthAccessor accessor) |
protected void |
SimpleOAuthValidator.validateVersion(OAuthMessage message) |
Modifier and Type | Method and Description |
---|---|
OAuthMessage |
OAuthClient.getAccessToken(OAuthAccessor accessor,
String httpMethod,
Collection<? extends Map.Entry> parameters)
Get an access token from the service provider, in exchange for an
authorized request token.
|
void |
OAuthClient.getRequestToken(OAuthAccessor accessor)
Get a fresh request token from the service provider.
|
void |
OAuthClient.getRequestToken(OAuthAccessor accessor,
String httpMethod)
Get a fresh request token from the service provider.
|
void |
OAuthClient.getRequestToken(OAuthAccessor accessor,
String httpMethod,
Collection<? extends Map.Entry> parameters)
Get a fresh request token from the service provider.
|
OAuthMessage |
OAuthClient.getRequestTokenResponse(OAuthAccessor accessor,
String httpMethod,
Collection<? extends Map.Entry> parameters)
Get a fresh request token from the service provider.
|
OAuthMessage |
OAuthClient.invoke(OAuthAccessor accessor,
String url,
Collection<? extends Map.Entry> parameters)
Construct a request message, send it to the service provider and get the
response.
|
OAuthMessage |
OAuthClient.invoke(OAuthAccessor accessor,
String httpMethod,
String url,
Collection<? extends Map.Entry> parameters)
Construct a request message, send it to the service provider and get the
response.
|
OAuthMessage |
OAuthClient.invoke(OAuthMessage request,
ParameterStyle style)
Send a request message to the service provider and get the response.
|
Modifier and Type | Method and Description |
---|---|
protected String |
OAuthSignatureMethod.getSignature(OAuthMessage message) |
protected String |
RSA_SHA1.getSignature(String baseString) |
protected abstract String |
OAuthSignatureMethod.getSignature(String baseString)
Compute the signature for the given base string.
|
protected void |
RSA_SHA1.initialize(String name,
OAuthAccessor accessor) |
protected void |
OAuthSignatureMethod.initialize(String name,
OAuthAccessor accessor) |
protected boolean |
RSA_SHA1.isValid(String signature,
String baseString) |
protected abstract boolean |
OAuthSignatureMethod.isValid(String signature,
String baseString)
Decide whether the signature is valid.
|
static OAuthSignatureMethod |
OAuthSignatureMethod.newMethod(String name,
OAuthAccessor accessor)
The factory for signature methods.
|
static OAuthSignatureMethod |
OAuthSignatureMethod.newSigner(OAuthMessage message,
OAuthAccessor accessor) |
void |
OAuthSignatureMethod.sign(OAuthMessage message)
Add a signature to the message.
|
void |
OAuthSignatureMethod.validate(OAuthMessage message)
Check whether the message has a valid signature.
|
Copyright © 2023. All rights reserved.