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
    [Serializable]
    public struct SecureNetworkProtocolParameter : INetworkParameter

    Fields

    CACertificate

    Root CA certificate (PEM format).

    Declaration
    public FixedPEMString CACertificate
    Field Value
    Type Description
    FixedPEMString

    Certificate

    Server/client certificate (PEM format).

    Declaration
    public FixedPEMString Certificate
    Field Value
    Type Description
    FixedPEMString

    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 FixedString512Bytes Hostname
    Field Value
    Type Description
    FixedString512Bytes

    PrivateKey

    Server/client private key (PEM format).

    Declaration
    public FixedPEMString PrivateKey
    Field Value
    Type Description
    FixedPEMString

    Methods

    Validate()

    Checks if the values for all fields are valid. This method will be automatically called when adding parameters to the NetworkSettings.

    Declaration
    public bool Validate()
    Returns
    Type Description
    bool

    True if the parameter is valid, false otherwise.

    Implements

    INetworkParameter
    In This Article
    Back to top
    Copyright © 2024 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)