.NET Client Documentation
5.7.0
Search Results for

    Show / Hide Table of Contents

    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.

    In this article
    Back to top Copyright © 2010-2024 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.