Struct SecureNetworkProtocolParameter
Settings used to configure the secure protocol implementation.
Implements
Inherited Members
Namespace: Unity.Networking.Transport.TLS
Assembly: Unity.Networking.Transport.dll
Syntax
[Serializable]
public struct SecureNetworkProtocolParameter : INetworkParameterFields
CACertificate
Root CA certificate (PEM format).
Declaration
public FixedPEMString CACertificateField Value
| Type | Description | 
|---|---|
| FixedPEMString | 
Certificate
Server/client certificate (PEM format).
Declaration
public FixedPEMString CertificateField Value
| Type | Description | 
|---|---|
| FixedPEMString | 
ClientAuthenticationPolicy
Client authentication policy (server only, defaults to optional).
Declaration
public SecureClientAuthPolicy ClientAuthenticationPolicyField Value
| Type | Description | 
|---|---|
| SecureClientAuthPolicy | 
Hostname
Server/client certificate's common name.
Declaration
public FixedString512Bytes HostnameField Value
| Type | Description | 
|---|---|
| FixedString512Bytes | 
PrivateKey
Server/client private key (PEM format).
Declaration
public FixedPEMString PrivateKeyField 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. |