public class ConstantAuthorizationProvider extends Object implements IAuthorizationProvider
Constructor and Description |
---|
ConstantAuthorizationProvider()
Initializes a new instance.
|
ConstantAuthorizationProvider(String authorizationToken)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getAuthorizationToken()
Gets the authorization token to use for all resources.
|
String |
getAuthorizationToken(String url)
Gets an authorization token that will be used to request the given URL.
|
void |
setAuthorizationToken(String value)
Sets the authorization token to use for all resources.
|
public ConstantAuthorizationProvider()
public ConstantAuthorizationProvider(String authorizationToken)
authorizationToken
- The authorization token to use for all resources.public final String getAuthorizationToken(String url)
getAuthorizationToken
in interface IAuthorizationProvider
url
- The URL of the resource that will be requested.public final String getAuthorizationToken()
public final void setAuthorizationToken(String value)