is_valid


Description:

public bool is_valid (bool check_non_secrets, bool check_secrets) throws Error

Parameters:

this

the WireGuardPeer instance

check_non_secrets

if true, secret properties are validated. Otherwise, they are ignored for this purpose.

check_secrets

if true, non-secret properties are validated. Otherwise, they are ignored for this purpose.

Returns:

true if the peer is valid or fails with an error reason.