Crypto Server
    Preparing search index...

    Class OpaqueStore

    Store holding server secrets, client records and login sessions.

    Index
    • Return the server's long-term setup for the given suite, creating one on first use.

      Parameters

      • suite: SuiteId = "P256-SHA256"

      Returns ServerSetup

    • Return the fake record for unknown clients for the given suite, creating one on first use.

      Parameters

      • suite: SuiteId = "P256-SHA256"

      Returns RegistrationRecord

    • Save a client registration record; throws when the store is full.

      Parameters

      • credentialIdentifier: string
      • record: RegistrationRecord

      Returns void

    • Retrieve a client registration record, or undefined if not registered.

      Parameters

      • credentialIdentifier: string

      Returns RegistrationRecord | undefined

    • Store a login session and return its unique session ID.

      Parameters

      • credentialIdentifier: string
      • serverState: ServerLoginState
      • suite: SuiteId = "P256-SHA256"
      • ttlMs: number = DEFAULT_OPAQUE_SESSION_TTL_MS

      Returns string