30int janus_auth_init(gboolean enabled,
const char *secret,
const char *hash);
gboolean janus_auth_check_plugin(const char *token, janus_plugin *plugin)
Method to check whether a provided token can access a specified plugin.
Definition auth.c:294
gboolean janus_auth_add_token(const char *token)
Method to add a new valid token for authenticating.
Definition auth.c:189
gboolean janus_auth_allow_plugin(const char *token, janus_plugin *plugin)
Method to allow a token to use a plugin.
Definition auth.c:260
gboolean janus_auth_is_enabled(void)
Method to check whether the mechanism is enabled or not.
Definition auth.c:75
gboolean janus_auth_remove_token(const char *token)
Method to invalidate an existing token.
Definition auth.c:242
GList * janus_auth_list_tokens(void)
Method to return a list of the tokens.
Definition auth.c:223
void janus_auth_deinit(void)
Method to de-initialize the mechanism.
Definition auth.c:87
GList * janus_auth_list_plugins(const char *token)
Method to return a list of the plugins a specific token has access to.
Definition auth.c:314
gboolean janus_auth_check_signature(const char *token, const char *realm)
Method to check whether a signed token is valid.
Definition auth.c:100
gboolean janus_auth_is_stored_mode(void)
Method to check whether the mechanism is in stored-token mode or not.
Definition auth.c:79
gboolean janus_auth_is_signed_mode(void)
Method to check whether the mechanism is in signed-token mode or not.
Definition auth.c:83
gboolean janus_auth_check_token(const char *token)
Method to check whether a provided token is valid or not.
Definition auth.c:208
int janus_auth_init(gboolean enabled, const char *secret, const char *hash)
Method to initializing the token based authentication.
Definition auth.c:48
gboolean janus_auth_check_signature_contains(const char *token, const char *realm, const char *desc)
Method to verify a signed token contains a descriptor.
Definition auth.c:137
gboolean janus_auth_disallow_plugin(const char *token, janus_plugin *plugin)
Method to disallow a token to use a plugin.
Definition auth.c:331
Plugin-Core communication (implementation).
The plugin session and callbacks interface.
Definition plugin.h:252