iya-sts
    Preparing search index...

    Variable verifyPresentedCertificate

    verifyPresentedCertificate: (
        certificate: any,
        id: any,
    ) =>
        | {
            errorCode: any;
            ok: boolean;
            reason: string;
            revocation?: undefined;
            trustDomain?: undefined;
        }
        | {
            errorCode?: undefined;
            ok: boolean;
            reason?: undefined;
            revocation: any;
            trustDomain: any;
        } = ...

    Type Declaration

      • (
            certificate: any,
            id: any,
        ):
            | {
                errorCode: any;
                ok: boolean;
                reason: string;
                revocation?: undefined;
                trustDomain?: undefined;
            }
            | {
                errorCode?: undefined;
                ok: boolean;
                reason?: undefined;
                revocation: any;
                trustDomain: any;
            }
      • Verifies a presented X509-SVID: its validity window, an authority this service holds that issued and signed it, its trust domain matching that authority's, and its revocation status.

        Parameters

        • certificate: any

          the peer certificate

        • id: any

          the SPIFFE ID it claims

        Returns
            | {
                errorCode: any;
                ok: boolean;
                reason: string;
                revocation?: undefined;
                trustDomain?: undefined;
            }
            | {
                errorCode?: undefined;
                ok: boolean;
                reason?: undefined;
                revocation: any;
                trustDomain: any;
            }

        { ok: true, trustDomain, revocation }, or { ok: false, reason, errorCode }