CloudIdentityProvider Constructor (CloudIdentity) |
Initializes a new instance of the
CloudIdentityProvider class
with the specified default identity, and the default base URL, REST service
implementation, and token cache.
Namespace: net.openstack.Providers.RackspaceAssembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax public CloudIdentityProvider(
CloudIdentity defaultIdentity
)
Public Sub New (
defaultIdentity As CloudIdentity
)
public:
CloudIdentityProvider(
CloudIdentity^ defaultIdentity
)
new :
defaultIdentity : CloudIdentity -> CloudIdentityProvider
Parameters
- defaultIdentity
- Type: net.openstack.Core.DomainCloudIdentity
The default identity to use for calls that do not explicitly specify an identity. If this value is , no default identity is available so all calls must specify an explicit identity.
Examples The following example demonstrates the use of this method to create an identity provider that
authenticates using username and API key credentials.
var identity = new CloudIdentity { Username = "{username}", APIKey = "{apiKey}" };
var provider = new CloudIdentityProvider(identity);
Dim identity = New CloudIdentity With {.Username = "{username}", .APIKey = "{apiKey}"}
Dim provider = New CloudIdentityProvider(identity)
auto identity = gcnew CloudIdentity();
identity->Username = "{username}";
identity->APIKey = "{apiKey}";
auto provider = gcnew CloudIdentityProvider(identity);
let identity = new CloudIdentity (Username = "{username}", APIKey = "{apiKey}")
let provider = new CloudIdentityProvider(identity)
The following example demonstrates the use of this method to create an identity provider that
authenticates using username and password credentials.
var identity = new CloudIdentity { Username = "{username}", Password = "{password}" };
var provider = new CloudIdentityProvider(identity);
Dim identity = New CloudIdentity With {.Username = "{username}", .Password = "{password}"}
Dim provider = New CloudIdentityProvider(identity)
auto identity = gcnew CloudIdentity();
identity->Username = "{username}";
identity->Password = "{password}";
auto provider = gcnew CloudIdentityProvider(identity);
let identity = new CloudIdentity (Username = "{username}", Password = "{password}")
let provider = new CloudIdentityProvider(identity)
Version Information .NET Framework
Supported in: 4.5
openstack.net
Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also