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