Proca.PublicKey (proca v3.4.1)

Keypair for encyrption of personal data

Link to this section Summary

Link to this section Functions

Link to this function

activate_for(org, id)

Specs

activate_for(Proca.Org, integer()) :: Ecto.Multi
Link to this function

active_key_for(org)

Specs

active_key_for(%Proca.Org{
  __meta__: term(),
  action_pages: term(),
  action_schema_version: term(),
  campaigns: term(),
  config: term(),
  contact_schema: term(),
  custom_action_confirm: term(),
  custom_action_deliver: term(),
  custom_event_deliver: term(),
  custom_supporter_confirm: term(),
  detail_backend: term(),
  detail_backend_id: term(),
  doi_thank_you: term(),
  email_backend: term(),
  email_backend_id: term(),
  email_from: term(),
  event_backend: term(),
  event_backend_id: term(),
  high_security: term(),
  id: term(),
  inserted_at: term(),
  name: term(),
  public_keys: term(),
  push_backend: term(),
  push_backend_id: term(),
  services: term(),
  staffers: term(),
  storage_backend: term(),
  storage_backend_id: term(),
  supporter_confirm: term(),
  supporter_confirm_template: term(),
  title: term(),
  updated_at: term()
}) ::
  %Proca.PublicKey{
    __meta__: term(),
    active: term(),
    expired: term(),
    id: term(),
    inserted_at: term(),
    name: term(),
    org: term(),
    org_id: term(),
    private: term(),
    public: term(),
    updated_at: term()
  }
  | nil
Link to this function

active_keys(preload \\ [])

Link to this function

all(query, list)

Link to this function

base_decode(encoded)

Link to this function

base_decode_changeset(ch)

Link to this function

base_encode(data)

Link to this function

build_for(org, name \\ "generated")

Link to this function

expire(public_key)

Link to this function

filter(query, criteria)

Link to this function

import_private_for(org, private, name \\ "imported")

Link to this function

import_public_for(org, public, name \\ "imported")

Link to this function

validate_bit_size(ch, field, size)