Add support for hidding adapter datas

This commit is contained in:
osaajani 2022-03-28 01:54:38 +02:00
parent 5c69237169
commit a226139630
11 changed files with 101 additions and 0 deletions

View file

@ -66,6 +66,15 @@ namespace adapters;
return false;
}
/**
* Should this adapter data be hidden after creation
* this help to prevent API credentials to other service leak if an attacker gain access to RaspiSMS through user credentials.
*/
public static function meta_hide_data(): bool
{
return false;
}
/**
* Name of the adapter.
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).