public abstract class Credential extends Object
CloudResources.| Constructor and Description |
|---|
Credential() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
authorizeRequest(HttpURLConnection con)
Decorates the connection by adding necessary information for authentication,
most typically the "Authorization" header.
|
static Credential |
oauth(OauthToken token)
Creates a
Credential implementation that always put the specified OAuth token. |
static Credential |
oauth(String token)
Creates a
Credential implementation that always put the specified OAuth token. |
public abstract void authorizeRequest(HttpURLConnection con) throws IOException
IOException - If an error happens and the request should not proceed.public static Credential oauth(String token)
Credential implementation that always put the specified OAuth token.public static Credential oauth(OauthToken token)
Credential implementation that always put the specified OAuth token.Copyright © 2011-2015. All Rights Reserved.