public class OAuthCredentials
extends org.apache.http.auth.UsernamePasswordCredentials
| Modifier and Type | Field and Description |
|---|---|
private net.oauth.OAuthAccessor |
accessor |
| Constructor and Description |
|---|
OAuthCredentials(net.oauth.OAuthAccessor accessor) |
OAuthCredentials(String consumerKey,
String consumerSecret)
Constructs a simple accessor, containing only a consumer key and secret.
|
| Modifier and Type | Method and Description |
|---|---|
net.oauth.OAuthAccessor |
getAccessor() |
String |
getPassword()
Get the current consumer secret, to be used as a password.
|
String |
getUserName()
Get the current consumer key, to be used as a password.
|
public net.oauth.OAuthAccessor getAccessor()
public String getPassword()
getPassword in interface org.apache.http.auth.CredentialsgetPassword in class org.apache.http.auth.UsernamePasswordCredentialspublic String getUserName()
getUserName in class org.apache.http.auth.UsernamePasswordCredentialsCopyright © 2016. All rights reserved.