Freigeben über


TokenCloudCredentials Class

 

Class for token based credentials associated with a particular subscription.

Namespace:   Microsoft.WindowsAzure
Assembly:  Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.CloudCredentials
    Microsoft.WindowsAzure.SubscriptionCloudCredentials
      Microsoft.WindowsAzure.TokenCloudCredentials

Syntax

public class TokenCloudCredentials : SubscriptionCloudCredentials
public ref class TokenCloudCredentials : SubscriptionCloudCredentials
type TokenCloudCredentials = 
    class
        inherit SubscriptionCloudCredentials
    end
Public Class TokenCloudCredentials
    Inherits SubscriptionCloudCredentials

Constructors

Name Description
System_CAPS_pubmethod TokenCloudCredentials(String)

Initializes a new instance of the TokenCloudCredentials class without subscription ID.

System_CAPS_pubmethod TokenCloudCredentials(String, String)

Initializes a new instance of the TokenCloudCredentials class with subscription ID.

Properties

Name Description
System_CAPS_pubproperty SubscriptionId

Gets subscription ID which uniquely identifies Microsoft Azure subscription. The subscription ID forms part of the URI for every call that you make to the Service Management API.(Overrides SubscriptionCloudCredentials.SubscriptionId.)

System_CAPS_pubproperty Token

Gets or sets secure token used to authenticate against Microsoft Azure API. No anonymous requests are allowed.

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static Create(IDictionary<String, Object>)

Attempt to create token credentials from a collection of settings.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod InitializeServiceClient<T>(ServiceClient<T>)

Initializes an instance of ServiceClient<T> that is used to process the credentials.(Inherited from CloudCredentials.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ProcessHttpRequestAsync(HttpRequestMessage, CancellationToken)

Apply the credentials to the HTTP request.(Overrides CloudCredentials.ProcessHttpRequestAsync(HttpRequestMessage, CancellationToken).)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure Namespace

Return to top