Proca.PublicKey (proca v3.0.2)

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()) :: Proca.PublicKey
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(),
  confirm_processing: term(),
  contact_schema: term(),
  custom_action_confirm: term(),
  custom_action_deliver: term(),
  custom_supporter_confirm: term(),
  email_backend: term(),
  email_backend_id: term(),
  email_from: term(),
  email_opt_in: term(),
  email_opt_in_template: term(),
  event_backend: term(),
  event_backend_id: term(),
  event_processing: term(),
  high_security: term(),
  id: term(),
  inserted_at: term(),
  name: term(),
  public_keys: term(),
  services: term(),
  staffers: term(),
  system_sqs_deliver: term(),
  template_backend: term(),
  template_backend_id: 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

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)