KMS.Principals.Principal (kms v0.1.0)

Copy Markdown View Source

Summary

Types

t()

@type t() :: %KMS.Principals.Principal{
  __meta__: term(),
  encrypted_principal_private_key: term(),
  id: term(),
  inserted_at: term(),
  kind: term(),
  password: term(),
  password_hash: term(),
  principal_factors: term(),
  principal_private_key: term(),
  principal_public_key: term(),
  ref: term(),
  sessions: term(),
  tags: term(),
  updated_at: term(),
  username: term()
}

Functions

changeset(struct, params)

Callback implementation for KMS.Schema.changeset/2.

decrypt_private_key(principal, password, opts \\ [])

password_valid?(principal, password)