Creates a credential object T
from the file descriptor specific config
Creates a credential object T
from the file descriptor specific config
the config containing specific keys required to create a
credential object T
for the file descriptor
the credential object T
Returns an unique id from the given file descriptor path to use when accessing the config
Returns an unique id from the given file descriptor path to use when accessing the config
the file descriptor path
an unique id from the given file descriptor path
The protocol key to use when accessing the config
The protocol key to use when accessing the config
the protocol key to use when accessing the config
Reads from the config file and given the file descriptor path converted to
an unique id by the ìd
function, extracts a credentials object T
.
Reads from the config file and given the file descriptor path converted to
an unique id by the ìd
function, extracts a credentials object T
.
the config file with the credentials keys
the file descriptor path to be converted to an unique id
the credential object T
Trait that describes how a
FileDescriptor
extracts credentials from a config.The config file must follow the following structure:
{{protocol}}.default = $protocolCredentials {{protocol}}.credentials = [{ id = id1 creds = $protocolCredentials },{ ids = [id2, id3] creds = $protocolCredentials }]
The {{protocol}}.default is an optional and is used as a fallback when the file descriptor id matches none of the credentials ids.
Inside the {{protocol}}.credentials list there must be a
creds
key which contains the all required keys for the pertaining protocol, and either anid
or aids
key which represent an unique id or a list of unique ids respectively for which the credentials are valid.The type of credential object that is extracted