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
IOException
public Principal getUserPrincipal()
getUserPrincipal
in interface org.apache.http.auth.Credentials
public String getPassword()
getPassword
in interface org.apache.http.auth.Credentials
public boolean renew()
RenewableCredentials
renew
in interface RenewableCredentials