Struct SecureNetworkProtocolParameter
Settings used to configure the secure protocol implementation.
Implements
Inherited Members
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 |
---|---|
Secure |
Hostname
Server/client certificate's common name.
Declaration
public FixedString32Bytes Hostname
Field Value
Type | Description |
---|---|
Fixed |
Pem
Root CA certificate (PEM format).
Declaration
public FixedString4096Bytes Pem
Field Value
Type | Description |
---|---|
Fixed |
Protocol
Protocol to which the settings will apply.
Declaration
public SecureTransportProtocol Protocol
Field Value
Type | Description |
---|---|
Secure |
Rsa
Server/client certificate (PEM format).
Declaration
public FixedString4096Bytes Rsa
Field Value
Type | Description |
---|---|
Fixed |
RsaKey
Server/client private key (PEM format).
Declaration
public FixedString4096Bytes RsaKey
Field Value
Type | Description |
---|---|
Fixed |
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. |