NodeOPCUA API Documentation
    Preparing search index...

    Class SecurityGroupKeyRing

    The keys of one PubSub SecurityGroup, as a Security Key Service holds them.

    The ring has no timer. It reads the clock each time that a caller uses it, and it moves the current key forward by the number of key lifetimes that went by. A key is made once, so two callers that ask at different times get the same bytes for the same SecurityTokenId.

    The SecurityTokenId of the first key is 1. It goes up by 1 each time a key lifetime ends, also when nobody asks for keys. After 0xFFFFFFFF it restarts at 1 (OPC 10000-14 v1.05 §8.3.2, FirstTokenId).

    The ring never writes a key to a string, a log or a JSON text.

    The shape of this class can change in any release. See EXPERIMENTAL.md.

    Index
    keyLifetime: number
    maxFutureKeyCount: number
    maxPastKeyCount: number
    securityPolicyUri: string
    • get currentTokenId(): number

      The SecurityTokenId of the current key.

      Returns number

    • Returns string

    • The keys of the group, as the Method GetSecurityKeys returns them (OPC 10000-14 v1.05 §8.3.2).

      • startingTokenId 0 asks for the current key.
      • A startingTokenId that the ring does not hold gives the oldest key that it holds.
      • The count of future keys is at most maxFutureKeyCount (§8.4.1). A requestedKeyCount of 0 gives no future key.

      Parameters

      • startingTokenId: number

        an integer from 0 to 0xFFFFFFFF

      • requestedKeyCount: number

        an integer from 0 to 0xFFFFFFFF

      Returns SecurityKeys

    • A summary of the ring. It has no key.

      Returns object

    • A summary of the ring. It has no key.

      Returns string