docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method WithSecureClientParameters

    WithSecureClientParameters(ref NetworkSettings, ref FixedString512Bytes)

    Set client security parameters (for WebSocket usage).

    Declaration
    public static ref NetworkSettings WithSecureClientParameters(this ref NetworkSettings settings, ref FixedString512Bytes serverName)
    Parameters
    Type Name Description
    NetworkSettings settings
    FixedString512Bytes serverName

    Hostname of the server to connect to.

    Returns
    Type Description
    NetworkSettings

    WithSecureClientParameters(ref NetworkSettings, string)

    Set client security parameters (for WebSocket usage).

    Declaration
    public static ref NetworkSettings WithSecureClientParameters(this ref NetworkSettings settings, string serverName)
    Parameters
    Type Name Description
    NetworkSettings settings
    string serverName

    Hostname of the server to connect to.

    Returns
    Type Description
    NetworkSettings

    WithSecureClientParameters(ref NetworkSettings, ref FixedString4096Bytes, ref FixedString512Bytes)

    Set client security parameters (server authentication only).

    Declaration
    public static ref NetworkSettings WithSecureClientParameters(this ref NetworkSettings settings, ref FixedString4096Bytes caCertificate, ref FixedString512Bytes serverName)
    Parameters
    Type Name Description
    NetworkSettings settings
    FixedString4096Bytes caCertificate

    CA certificate that signed the server's certificate (PEM format).

    FixedString512Bytes serverName

    Common name (CN) in the server certificate.

    Returns
    Type Description
    NetworkSettings

    WithSecureClientParameters(ref NetworkSettings, ref FixedPEMString, ref FixedString512Bytes)

    Set client security parameters (server authentication only).

    Declaration
    public static ref NetworkSettings WithSecureClientParameters(this ref NetworkSettings settings, ref FixedPEMString caCertificate, ref FixedString512Bytes serverName)
    Parameters
    Type Name Description
    NetworkSettings settings
    FixedPEMString caCertificate

    CA certificate that signed the server's certificate (PEM format).

    FixedString512Bytes serverName

    Common name (CN) in the server certificate.

    Returns
    Type Description
    NetworkSettings

    WithSecureClientParameters(ref NetworkSettings, string, string)

    Set client security parameters (server authentication only).

    Declaration
    public static ref NetworkSettings WithSecureClientParameters(this ref NetworkSettings settings, string caCertificate, string serverName)
    Parameters
    Type Name Description
    NetworkSettings settings
    string caCertificate

    CA certificate that signed the server's certificate (PEM format).

    string serverName

    Common name (CN) in the server certificate.

    Returns
    Type Description
    NetworkSettings

    WithSecureClientParameters(ref NetworkSettings, ref FixedString4096Bytes, ref FixedString4096Bytes, ref FixedString4096Bytes, ref FixedString512Bytes)

    Set client security parameters (for client authentication).

    Declaration
    public static ref NetworkSettings WithSecureClientParameters(this ref NetworkSettings settings, ref FixedString4096Bytes certificate, ref FixedString4096Bytes privateKey, ref FixedString4096Bytes caCertificate, ref FixedString512Bytes serverName)
    Parameters
    Type Name Description
    NetworkSettings settings
    FixedString4096Bytes certificate

    Client's certificate (PEM format).

    FixedString4096Bytes privateKey

    Client's private key (PEM format).

    FixedString4096Bytes caCertificate

    CA certificate that signed the server's certificate (PEM format).

    FixedString512Bytes serverName

    Common name (CN) in the server certificate.

    Returns
    Type Description
    NetworkSettings

    WithSecureClientParameters(ref NetworkSettings, ref FixedPEMString, ref FixedPEMString, ref FixedPEMString, ref FixedString512Bytes)

    Set client security parameters (for client authentication).

    Declaration
    public static ref NetworkSettings WithSecureClientParameters(this ref NetworkSettings settings, ref FixedPEMString certificate, ref FixedPEMString privateKey, ref FixedPEMString caCertificate, ref FixedString512Bytes serverName)
    Parameters
    Type Name Description
    NetworkSettings settings
    FixedPEMString certificate

    Client's certificate (PEM format).

    FixedPEMString privateKey

    Client's private key (PEM format).

    FixedPEMString caCertificate

    CA certificate that signed the server's certificate (PEM format).

    FixedString512Bytes serverName

    Common name (CN) in the server certificate.

    Returns
    Type Description
    NetworkSettings

    WithSecureClientParameters(ref NetworkSettings, string, string, string, string)

    Set client security parameters (for client authentication).

    Declaration
    public static ref NetworkSettings WithSecureClientParameters(this ref NetworkSettings settings, string certificate, string privateKey, string caCertificate, string serverName)
    Parameters
    Type Name Description
    NetworkSettings settings
    string certificate

    Client's certificate (PEM format).

    string privateKey

    Client's private key (PEM format).

    string caCertificate

    CA certificate that signed the server's certificate (PEM format).

    string serverName

    Common name (CN) in the server certificate.

    Returns
    Type Description
    NetworkSettings
    In This Article
    Back to top
    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