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.http |
Classes that integrate OAuth with HTTP.
|
net.oauth.server |
Classes for implementing an OAuth Service Provider; that is
a server that controls access to protected resources.
|
net.oauth.signature |
Classes to compute and verify digital signatures.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
SimpleOAuthValidator.checkSingleParameters(OAuthMessage message)
Throw an exception if any SINGLE_PARAMETERS occur repeatedly.
|
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 Date |
SimpleOAuthValidator.validateNonce(OAuthMessage message,
long timestamp,
long currentTimeMsec)
Throw an exception if the nonce has been validated previously.
|
protected void |
SimpleOAuthValidator.validateSignature(OAuthMessage message,
OAuthAccessor accessor) |
protected void |
SimpleOAuthValidator.validateTimestamp(OAuthMessage message,
long timestamp,
long currentTimeMsec)
Throw an exception if the timestamp [sec] is out of range.
|
protected void |
SimpleOAuthValidator.validateTimestampAndNonce(OAuthMessage message)
Throw an exception if the timestamp is out of range or the nonce has been
validated previously.
|
protected void |
SimpleOAuthValidator.validateVersion(OAuthMessage message) |
Modifier and Type | Class and Description |
---|---|
class |
OAuthResponseMessage
An HTTP response, encapsulated as an OAuthMessage.
|
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.
|
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 |
---|---|
OAuthResponseMessage |
OAuthClient.access(OAuthMessage request,
ParameterStyle style)
Send a request and return 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 |
---|---|
static HttpMessage |
HttpMessage.newRequest(OAuthMessage from,
ParameterStyle style)
Construct an HTTP request from this OAuth message.
|
Modifier and Type | Class and Description |
---|---|
class |
HttpRequestMessage
An HttpServletRequest, encapsulated as an OAuthMessage.
|
Modifier and Type | Method and Description |
---|---|
static OAuthMessage |
OAuthServlet.getMessage(javax.servlet.http.HttpServletRequest request,
String URL)
Extract the parts of the given request that are relevant to OAuth.
|
Modifier and Type | Method and Description |
---|---|
static String |
OAuthSignatureMethod.getBaseString(OAuthMessage message) |
protected String |
OAuthSignatureMethod.getSignature(OAuthMessage message) |
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.