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 |
---|---|
Fixed |
Certificate
Server/client certificate (PEM format).
Declaration
public FixedPEMString Certificate
Field Value
Type | Description |
---|---|
Fixed |
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 FixedString512Bytes Hostname
Field Value
Type | Description |
---|---|
Fixed |
PrivateKey
Server/client private key (PEM format).
Declaration
public FixedPEMString PrivateKey
Field Value
Type | Description |
---|---|
Fixed |
Methods
Validate()
Checks if the values for all fields are valid. This method will be automatically called
when adding parameters to the Network
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
bool | True if the parameter is valid, false otherwise. |