public class OAuth2Credentials extends Object implements RenewableCredentials
| Constructor and Description |
|---|
OAuth2Credentials(OAuth2Context context) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPassword() |
Principal |
getUserPrincipal() |
boolean |
renew()
Method returns true if the Credentials has been renewed.
|
public OAuth2Credentials(OAuth2Context context) throws IOException
IOExceptionpublic Principal getUserPrincipal()
getUserPrincipal in interface org.apache.http.auth.Credentialspublic String getPassword()
getPassword in interface org.apache.http.auth.Credentialspublic boolean renew()
RenewableCredentialsrenew in interface RenewableCredentials