Gjsify LogoGjsify Logo

Opaque struct. Use the accessor functions below.

record

Hierarchy

  • IdentityInfo

Index

Constructors

Properties

name: string

Methods

  • free(): void
  • getCaption(): string
  • getId(): number
  • getMethods(): HashTable<string | number | symbol, string | number | boolean>
  • Get a hash table of the methods and mechanisms of info. See signon_identity_info_set_methods().

    Returns HashTable<string | number | symbol, string | number | boolean>

  • getRealms(): string[]
  • getStoringSecret(): boolean
  • Get whether the secret of info should be stored by gSSO in the secret database.

    Returns boolean

  • getUsername(): string
  • ownMethods(methods: HashTable<string | number | symbol, string | number | boolean>): void
  • Set authentication methods that are allowed to be used with this identity.

    This function will just increment reference count of hash table, so it should be constructed with #g_hash_table_new_full.

    Parameters

    • methods: HashTable<string | number | symbol, string | number | boolean>

      methods.

    Returns void

  • removeMethod(method: string): void
  • Remove method from the list of allowed authentication methods.

    Parameters

    • method: string

      an authentication method.

    Returns void

  • setCaption(caption: string): void
  • Sets the caption (display name) for the identity.

    Parameters

    • caption: string

      the caption.

    Returns void

  • setMethod(method: string, mechanisms: string[]): void
  • Adds a method to the list of allowed authentication methods.

    Parameters

    • method: string

      an authentication method.

    • mechanisms: string[]

      a %NULL-terminated list of mechanisms.

    Returns void

  • setMethods(methods: HashTable<string | number | symbol, string | number | boolean>): void
  • Set authentication methods that are allowed to be used with this identity.

    Parameters

    • methods: HashTable<string | number | symbol, string | number | boolean>

      methods.

    Returns void

  • setOwnerFromValues(systemContext: string, applicationContext: string): void
  • Set identity owner's security context.

    Parameters

    • systemContext: string

      owner's system context.

    • applicationContext: string

      owner's application context.

    Returns void

  • setRealms(realms: string[]): void
  • Specify what realms this identity can be used in.

    Parameters

    • realms: string[]

      a %NULL-terminated list of realms.

    Returns void

  • setSecret(secret: string, storeSecret: boolean): void
  • Sets the secret (password) for the identity, and whether the gSSO daemon should remember it.

    Parameters

    • secret: string

      the secret.

    • storeSecret: boolean

      whether signond should store the secret in its DB.

    Returns void

  • setUsername(username: string): void
  • Sets the username for the identity.

    Parameters

    • username: string

      the username.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method