View Source ExUid2.Keyring.Key (ex_uid2 v0.2.2)

Struct holding the information for a given key.

Summary

Types

t()

Struct holding the information for a given key.

Types

@type t() :: %ExUid2.Keyring.Key{
  activates_ms: non_neg_integer(),
  created_ms: non_neg_integer(),
  expires_ms: non_neg_integer(),
  id: non_neg_integer(),
  keyset_id: non_neg_integer(),
  secret: binary()
}

Struct holding the information for a given key.

  • :activates_ms - Time when the key becomes active (Unix timestamp in milliseconds)

  • :created_ms - Time when the key was created (Unix timestamp in milliseconds)

  • :id - The key's ID for lookups in the keyring

  • :secret - That key's secret that must be used to decrypt the UID2 tokens.

  • keyset_id - Unknown

Functions

@spec new(map()) :: t()