pfSense-pkg-RESTAPI

OpenVPNClientExportTraits

Table of Contents

Properties

$advancedoptions  : Base64Field
$bindmode  : StringField
$blockoutsidedns  : BooleanField
$legacy  : BooleanField
$p12encryption  : StringField
$pass  : StringField
$pkcs11id  : StringField
$pkcs11providers  : StringField
$proxyaddr  : StringField
$proxypass  : StringField
$proxyport  : PortField
$proxyuser  : StringField
$server  : ForeignModelField
$silent  : BooleanField
$useaddr  : StringField
$useaddr_hostname  : StringField
$usepass  : BooleanField
$usepkcs11  : BooleanField
$useproxy  : BooleanField
$useproxypass  : StringField
$useproxytype  : StringField
$usetoken  : BooleanField
$verifyservercn  : StringField

Methods

validate_legacy()  : bool
Add extra validation to the 'legacy' field. This is used to ensure that legacy ciphers are even supported by the OpenVPN server.
__setup_fields()  : void
Sets up all Field properties for classes using this trait. This is primarily used to allow the OpenVPNClientExportConfig and OpenVPNClientExport Model classes to share the same fields since they are identical in structure, but serve two distinct purposes.

Properties

Methods

validate_legacy()

Add extra validation to the 'legacy' field. This is used to ensure that legacy ciphers are even supported by the OpenVPN server.

public validate_legacy(bool $legacy) : bool
Parameters
$legacy : bool
Return values
bool

__setup_fields()

Sets up all Field properties for classes using this trait. This is primarily used to allow the OpenVPNClientExportConfig and OpenVPNClientExport Model classes to share the same fields since they are identical in structure, but serve two distinct purposes.

private __setup_fields() : void

        
On this page

Search results