|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dyuproject.oauth.Transport
com.dyuproject.oauth.HttpAuthTransport
public final class HttpAuthTransport
Sends the oauth request parameters via the HTTP Authorization header.
Field Summary | |
---|---|
static HttpAuthTransport |
DEFAULT
The default instance. |
static String |
NAME
"Authorization" |
static String |
WWW_AUTHENTICATE
"WWW-Authenticate" |
Constructor Summary | |
---|---|
HttpAuthTransport()
|
Method Summary | |
---|---|
static String |
getAuthHeaderValue(UrlEncodedParameterMap params,
Endpoint ep,
Token token,
NonceAndTimestamp nts,
Signature signature)
Gets the computed value for the "Authorization" header. |
static HttpAuthTransport |
getDefault()
Gets the default instance. |
String |
getMethod()
Gets the method name of this transport. |
String |
getName()
Gets the name of this transport. |
void |
handleOAuthParameter(String key,
String value,
StringBuilder buffer)
Handles the encoded oauth key and value . |
HttpConnector.Response |
send(UrlEncodedParameterMap params,
Endpoint ep,
Token token,
TokenExchange exchange,
NonceAndTimestamp nts,
Signature signature,
HttpConnector connector)
Sends the params to the service provided and returns the http response HttpConnector.Response . |
Methods inherited from class com.dyuproject.oauth.Transport |
---|
appendToUrl, buildAuthUrl, buildAuthUrl, get, getAuthUrl, getAuthUrl, handleRequestParameter, putDefaults, register |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NAME
public static final String WWW_AUTHENTICATE
public static final HttpAuthTransport DEFAULT
Constructor Detail |
---|
public HttpAuthTransport()
Method Detail |
---|
public static HttpAuthTransport getDefault()
public String getName()
Transport
getName
in class Transport
public String getMethod()
Transport
getMethod
in class Transport
public void handleOAuthParameter(String key, String value, StringBuilder buffer)
Signature.Listener
key
and value
.
public HttpConnector.Response send(UrlEncodedParameterMap params, Endpoint ep, Token token, TokenExchange exchange, NonceAndTimestamp nts, Signature signature, HttpConnector connector) throws IOException
Transport
HttpConnector.Response
.
send
in class Transport
IOException
public static String getAuthHeaderValue(UrlEncodedParameterMap params, Endpoint ep, Token token, NonceAndTimestamp nts, Signature signature)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |