CredentialsFactory Property
CredentialsFactory
Gets the SingletonServiceFactory<TService> for the ICredentialsFactory.
Declaration
public SingletonServiceFactory<ICredentialsFactory> CredentialsFactory { get; }
Property Value
| SingletonServiceFactory<ICredentialsFactory> |
Remarks
When set in the configuration file, it is defined as an injected type, for instance:
<pre><code class="lang-csharp">"credentialsFactory":
{ "typeName": "My.CredentialsFactory", "args": { "foo": 42 } }
where <code>typeName</code> is the name of the type, and <code>args</code> is an optional dictionary
of arguments for the type constructor.</p>
<p>In addition, shortcuts exists for common credentials factory. The whole <code>credentialsFactory</code>
block can be omitted and replace by one of the following:</p>
<p>Username and password:
"username-password":
{
"username": "someone",
"password": "secret"
}
<p>Kerberos:
"kerberos":
{
"spn": "service-provider-name"
}
<p>Token:
"token":
{
"data": "some-secret-token",
"encoding": "none"
}
Supported encodings are: none and base64.