iya-sts
    Preparing search index...

    Variable encryptionFor

    encryptionFor: (username: string, address?: string) => any = ...

    Type Declaration

      • (username: string, address?: string): any
      • How mail to a person of the ambient realm is to be encrypted, when it goes to address (their mail when that is omitted).

        A KEY IS USED ONLY FOR AN ADDRESS IT NAMES: an OpenPGP key one of whose valid user ids names the address, an S/MIME certificate naming it. Otherwise the answer is unbound, and common/mail.ts decides what that means for the message (header point 9 there).

        Parameters

        • username: string

          the person

        • Optionaladdress: string

          the address the message goes to, or '' for mail

        Returns any

        { kind: 'none' }, { kind: 'openpgp', armoredKey, fingerprint }, { kind: 'smime', certificate (base64 DER), serial }, { kind: 'unavailable', chosen, why } for a choice that cannot be honoured now, or { kind: 'unbound', chosen, why } when the key or certificate does not name the address