public class OAuthCredentials
extends org.apache.http.auth.UsernamePasswordCredentials
Constructor and Description |
---|
OAuthCredentials(OAuthAccessor accessor) |
OAuthCredentials(String consumerKey,
String consumerSecret)
Constructs a simple accessor, containing only a consumer key and secret.
|
Modifier and Type | Method and Description |
---|---|
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 OAuthCredentials(OAuthAccessor accessor)
public OAuthAccessor getAccessor()
public String getPassword()
getPassword
in interface org.apache.http.auth.Credentials
getPassword
in class org.apache.http.auth.UsernamePasswordCredentials
public String getUserName()
getUserName
in class org.apache.http.auth.UsernamePasswordCredentials
Copyright © 2008–2017 Province of British Columbia. All rights reserved.