OpenClaw SDK
    Preparing search index...

    Class TlsValidator

    TLS certificate fingerprint validator.

    Validates TLS certificates using SHA-256 SPKI fingerprints. Provides constant-time comparison to prevent timing attacks.

    Platform support:

    • Node.js: Full validation with socket inspection
    • Browser: Validation skipped (browser handles TLS)
    Index

    Constructors

    Accessors

    • get isSupported(): boolean

      Check if TLS validation is supported on this platform.

      Returns false in browser environments where TLS socket inspection is not available.

      Returns boolean

    Methods

    • Add an expected fingerprint.

      Parameters

      • fingerprint: string

        Fingerprint to add

      Returns void