/// <summary> /// Initializes a new instance of the <see cref="AuthenticationData"/> class with the specified token. /// </summary> /// <param name="token">The <see cref="V2.Token"/> to use for authentication.</param> public AuthenticationData(Token token) : this(default(string), default(ProjectId), default(PasswordCredentials), token, EmptyExtensionData) { }
/// <summary> /// Initializes a new instance of the <see cref="AuthenticationData"/> class with the specified values and /// extension data. /// </summary> /// <remarks> /// <para>This constructor is typically used when authenticating with vendor-specific credentials that require /// additional properties which are not present in the typical OpenStack authentication scenarios.</para> /// </remarks> /// <param name="tenantName">The tenant name.</param> /// <param name="tenantId">The tenant ID.</param> /// <param name="passwordCredentials">The credentials to use for authentication.</param> /// <param name="token">The <see cref="V2.Token"/> to use for authentication.</param> /// <param name="extensionData">The extension data.</param> /// <exception cref="ArgumentNullException">If <paramref name="extensionData"/> is <see langword="null"/>.</exception> public AuthenticationData(string tenantName, ProjectId tenantId, PasswordCredentials passwordCredentials, Token token, ImmutableDictionary<string, JToken> extensionData) : base(extensionData) { _tenantName = tenantName; _tenantId = tenantId; _passwordCredentials = passwordCredentials; _token = token; }