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 : 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. |