AgsSecurityContext

AgsSecurityContext — current security context

Functions

Properties

gchar * certs Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsSecurityContext

Includes

#include <ags/server/security/ags_security_context.h>

Description

The AgsSecurityContext is an object to track active server contices.

Functions

ags_security_context_add_server_context ()

void
ags_security_context_add_server_context
                               (AgsSecurityContext *security_context,
                                gchar *server_context);

ags_security_context_remove_server_context ()

gboolean
ags_security_context_remove_server_context
                               (AgsSecurityContext *security_context,
                                gchar *server_context);

ags_security_context_new ()

AgsSecurityContext *
ags_security_context_new ();

Create AgsSecurityContext.

Returns

the new AgsSecurityContext instance

Since: 2.0.0


AGS_IS_SECURITY_CONTEXT()

#define AGS_IS_SECURITY_CONTEXT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SECURITY_CONTEXT))

AGS_SECURITY_CONTEXT()

#define AGS_SECURITY_CONTEXT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SECURITY_CONTEXT, AgsSecurityContext))

AGS_SECURITY_CONTEXT_CLASS()

#define AGS_SECURITY_CONTEXT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_SECURITY_CONTEXT, AgsSecurityContextClass))

AGS_SECURITY_CONTEXT_GET_CLASS()

#define AGS_SECURITY_CONTEXT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_SECURITY_CONTEXT, AgsSecurityContextClass))

ags_security_context_get_type ()

GType
ags_security_context_get_type ();

Types and Values

enum AgsSecurityContextMode

The AgsSecurityContextMode specifies basic account permissions.

Members

AGS_SECURITY_CONTEXT_RPC_READ

allowed to read using RPC

 

AGS_SECURITY_CONTEXT_RPC_WRITE

allowed to write using RPC

 

AGS_SECURITY_CONTEXT_RPC_EXECUTE

allowed to execute using RPC

 

AGS_SECURITY_CONTEXT_ACCOUNT_READ

allowed to read account information

 

AGS_SECURITY_CONTEXT_ACCOUNT_WRITE

allowed to write account information

 

AGS_TYPE_SECURITY_CONTEXT

#define AGS_TYPE_SECURITY_CONTEXT                (ags_security_context_get_type())

struct AgsSecurityContext

struct AgsSecurityContext;

struct AgsSecurityContextClass

struct AgsSecurityContextClass {
  GObjectClass object;
};

Property Details

The “certs” property

  “certs”                    gchar *

The assigned certificates as string.

Flags: Read / Write

Default value: NULL

Since: 2.0.0