public class TokenCloudCredentials extends SubscriptionCloudCredentials
| Constructor and Description |
|---|
TokenCloudCredentials()
Instantiates a new certificate cloud credentials.
|
TokenCloudCredentials(URI uri,
String subscriptionId,
String token)
Instantiates a new certificate cloud credentials.
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
applyConfig(String profile,
Map<String,Object> properties) |
String |
getSubscriptionId() |
String |
getToken()
Gets the ADAL authentication token.
|
URI |
getUri()
Gets the URI.
|
void |
setSubscriptionId(String subscriptionId)
Sets the subscription id.
|
void |
setToken(String token)
Sets the ADAL authentication configuration.
|
void |
setUri(URI uri)
Sets the URI.
|
public TokenCloudCredentials()
@Inject
public TokenCloudCredentials(@Named(value="management.uri")
URI uri,
@Named(value="management.subscription.id")
String subscriptionId,
String token)
uri - the urisubscriptionId - the subscription idtoken - the ADAL access tokenpublic String getSubscriptionId()
getSubscriptionId in class SubscriptionCloudCredentialspublic void setSubscriptionId(String subscriptionId)
subscriptionId - the new subscription idpublic URI getUri()
public void setUri(URI uri)
uri - the new URIpublic String getToken()
public void setToken(String token)
token - the new ADAL authentication tokenpublic <T> void applyConfig(String profile, Map<String,Object> properties)
applyConfig in class CloudCredentials/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/