UMIS SDK
    Preparing search index...

    Function createGateway

    • The gateway of a checkpoint: it takes the text of a scanned QR code, decides on it offline with verifyAtCheckpoint and, only when the decision is an accept, asks the relay to open for openSeconds (else the relay.openSeconds of the checkpoint policy, else 3). context supplies the verifier context for each scan; its clock is replaced by now, the clock of the gateway, so that the decision and the relay command agree. A text longer than maxInputChars (the longest QR code plus 16 by default) or with a character that QR alphanumeric mode cannot carry is MALFORMED and is turned away before it is decoded. A relay that fails or does not answer never changes the decision. onDecision hears every decision, accepted or not, before the relay is asked; what it does cannot change the outcome either. When context() fails the gateway throws PROTOCOL, opens nothing and returns no decision.

      Parameters

      Returns Gateway