docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SecureNetworkProtocolParameter

    Settings used to configure the secure protocol implementation.

    Implements
    INetworkParameter
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Networking.Transport.TLS
    Assembly: Unity.Networking.Transport.dll
    Syntax
    public struct SecureNetworkProtocolParameter : INetworkParameter

    Fields

    ClientAuthenticationPolicy

    Client authentication policy (server only, defaults to optional).

    Declaration
    public SecureClientAuthPolicy ClientAuthenticationPolicy
    Field Value
    Type Description
    SecureClientAuthPolicy

    Hostname

    Server/client certificate's common name.

    Declaration
    public FixedString32Bytes Hostname
    Field Value
    Type Description
    FixedString32Bytes

    Pem

    Root CA certificate (PEM format).

    Declaration
    public FixedString4096Bytes Pem
    Field Value
    Type Description
    FixedString4096Bytes

    Protocol

    Protocol to which the settings will apply.

    Declaration
    public SecureTransportProtocol Protocol
    Field Value
    Type Description
    SecureTransportProtocol

    Rsa

    Server/client certificate (PEM format).

    Declaration
    public FixedString4096Bytes Rsa
    Field Value
    Type Description
    FixedString4096Bytes

    RsaKey

    Server/client private key (PEM format).

    Declaration
    public FixedString4096Bytes RsaKey
    Field Value
    Type Description
    FixedString4096Bytes

    SSLHandshakeTimeoutMax

    Maximum secure handshake timeout (milliseconds, defaults to 60000).

    Declaration
    public uint SSLHandshakeTimeoutMax
    Field Value
    Type Description
    uint

    SSLHandshakeTimeoutMin

    Minimum secure handshake timeout (milliseconds, defaults to 1000).

    Declaration
    public uint SSLHandshakeTimeoutMin
    Field Value
    Type Description
    uint

    SSLReadTimeoutMs

    Timeout in milliseconds for secure reads.

    Declaration
    public uint SSLReadTimeoutMs
    Field Value
    Type Description
    uint

    Methods

    Validate()

    Validate the settings.

    Declaration
    public bool Validate()
    Returns
    Type Description
    bool

    True if the settings are valid, false otherwise.

    Implements

    INetworkParameter
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)