NodeOPCUA API Documentation
    Preparing search index...

    Class TokenStack

    Index
    • Parameters

      • channelId: number

      Returns TokenStack

    • Chooses the token whose keys secure a response, and so the token id the header of the response names. The choice follows the two rules of the specification:

      • OPC 10000-4, 5.6.2.1 and OPC 10000-6, 6.7.4: the server uses the existing token until it expires (the end of its revised lifetime, 100%), or until it receives a message from the client secured with the new token. The client reads a response with the keys of the token that the header names.
      • OPC 10000-6, 6.7.4: a receiver accepts a message secured with an expired token for up to 25% of the lifetime, to cover network delays. This is the case of a response that was sent with a token while the client dropped it.

      In order: a. the newest token the client has used, if it has not expired; b. the token of the request, if it has not expired; c. the newest token that has not expired (the one made at the 75% renewal); d. the token of the request, if it is within the 25% after its expiry; e. none.

      Parameters

      • requestTokenId: number
      • newestTokenIdOfClient: number

      Returns { derivedKeys: DerivedKeys1; tokenId: number } | null

    • Parameters

      • tokenId: number

      Returns ISecurityToken | null

    • Parameters

      • tokenId: number

      Returns DerivedKeys1 | null

    • Parameters

      Returns void

    • Returns void