iya-sts
    Preparing search index...
    importPolicies: (input: unknown, options?: any) => Promise<any> = ...

    Type Declaration

      • (input: unknown, options?: any): Promise<any>
      • Imports a document into the ambient realm. An own realm's signer, or one the signer truststore already holds, is trusted at once; another realm's is trusted only when trustSigner is true AND issuerFingerprint names the Issuing CA inspect() showed, and then its chain is added to the signer truststore for policy-signer. Each profile is written through its kind's own save, so a profile a kind refuses is reported by name and the others still go in.

        A selection (policies, [{ kind, name }]) writes only those profiles; every one it names must be in the document, or nothing is trusted or written.

        Parameters

        • input: unknown

          the document

        • Optionaloptions: any

          { trustSigner, issuerFingerprint, actor, policies }

        Returns Promise<any>

        a promise of { ok, origin, imported, refused, trustAdded, selection? }, or a refusal; needsTrust on the refusal of an unanswered question