public class OAuthURLConnectionAuthHandler extends OAuthAuthHandler implements URLConnectionAuthHandler
| Constructor and Description |
|---|
OAuthURLConnectionAuthHandler(OAuthTokenCredentialMapper credentialMapper) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
endorseRequest(String accessToken,
HttpURLConnection conn)
"Signs" or "endorses" the request.
|
OAuthTokenCredentialMapper |
getOAuthTokenCredentialMapper() |
getOAuthCredentialMappergetCredentialMapperclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCredentialMapperpublic OAuthURLConnectionAuthHandler(OAuthTokenCredentialMapper credentialMapper)
public OAuthTokenCredentialMapper getOAuthTokenCredentialMapper()
public boolean endorseRequest(String accessToken, HttpURLConnection conn) throws MiniAuthException, IOException
endorseRequest in interface URLConnectionAuthHandleraccessToken - Auth token needed for making a request.conn - URLConnection. conn is an "in-out" param.MiniAuthExceptionIOExceptionCopyright © 2013. All rights reserved.