docs.unity3d.com
    Show / Hide Table of Contents

    Class PkceAuthenticatorSettingsBuilder

    Builds a PkceAuthenticatorSettings to inject into the PkceAuthenticator.

    Inheritance
    Object
    PkceAuthenticatorSettingsBuilder
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Cloud.Identity
    Syntax
    public class PkceAuthenticatorSettingsBuilder

    Constructors

    PkceAuthenticatorSettingsBuilder(IAuthenticationPlatformSupport, IServiceHostResolver)

    Creates a PkceAuthenticatorSettingsBuilder that builds a PkceAuthenticatorSettings to inject into the PkceAuthenticator.

    Declaration
    public PkceAuthenticatorSettingsBuilder(IAuthenticationPlatformSupport authenticationPlatformSupport, IServiceHostResolver serviceHostResolver)
    Parameters
    Type Name Description
    IAuthenticationPlatformSupport authenticationPlatformSupport
    IServiceHostResolver serviceHostResolver
    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    Methods

    AddAccessTokenExchanger(IAccessTokenExchanger<String, UnityServicesToken>)

    Adds a IServiceHostResolver to the authenticator settings.

    Declaration
    public PkceAuthenticatorSettingsBuilder AddAccessTokenExchanger(IAccessTokenExchanger<string, UnityServicesToken> accessTokenExchanger)
    Parameters
    Type Name Description
    IAccessTokenExchanger<String, UnityServicesToken> accessTokenExchanger

    The IAccessTokenExchanger<T1, T2> to add to the authenticator settings.

    Returns
    Type Description
    PkceAuthenticatorSettingsBuilder

    The modified PkceAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    AddConfigurationProvider(IPkceConfigurationProvider)

    Adds a IPkceConfigurationProvider to the authenticator settings.

    Declaration
    public PkceAuthenticatorSettingsBuilder AddConfigurationProvider(IPkceConfigurationProvider pkceConfigurationProvider)
    Parameters
    Type Name Description
    IPkceConfigurationProvider pkceConfigurationProvider

    The IPkceConfigurationProvider to add to the authenticator settings.

    Returns
    Type Description
    PkceAuthenticatorSettingsBuilder

    The modified PkceAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    AddDefaultAccessTokenExchanger(IHttpClient)

    Adds a IServiceHostResolver to the authenticator settings.

    Declaration
    public PkceAuthenticatorSettingsBuilder AddDefaultAccessTokenExchanger(IHttpClient httpClient)
    Parameters
    Type Name Description
    IHttpClient httpClient

    The IHttpClient with which to build the default IAccessTokenExchanger<T1, T2>.

    Returns
    Type Description
    PkceAuthenticatorSettingsBuilder

    The modified PkceAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    AddDefaultConfigurationProviderAndRequestHandler(IHttpClient, IAppNameProvider)

    Adds a default implementation of IPkceConfigurationProvider to the authenticator settings.

    Declaration
    public PkceAuthenticatorSettingsBuilder AddDefaultConfigurationProviderAndRequestHandler(IHttpClient httpClient, IAppNameProvider appNameProvider)
    Parameters
    Type Name Description
    IHttpClient httpClient

    The IHttpClient with which to build the default IPkceRequestHandler.

    IAppNameProvider appNameProvider

    The IAppNameProvider with which to build the default IPkceConfigurationProvider.

    Returns
    Type Description
    PkceAuthenticatorSettingsBuilder

    The modified PkceAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    AddRequestHandler(IPkceRequestHandler)

    Adds a IPkceRequestHandler to the authenticator settings.

    Declaration
    public PkceAuthenticatorSettingsBuilder AddRequestHandler(IPkceRequestHandler pkceRequestHandler)
    Parameters
    Type Name Description
    IPkceRequestHandler pkceRequestHandler

    The IPkceRequestHandler to add to the authenticator settings.

    Returns
    Type Description
    PkceAuthenticatorSettingsBuilder

    The modified PkceAuthenticatorSettingsBuilder.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if any parameter is null.

    Build()

    Builds the PkceAuthenticatorSettings to inject into the PkceAuthenticator.

    Declaration
    public PkceAuthenticatorSettings Build()
    Returns
    Type Description
    PkceAuthenticatorSettings

    The PkceAuthenticatorSettings.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023