c

nelson.crypto

TokenVersion

final case class TokenVersion(major: Int, minor: Int, micro: Int) extends Product with Serializable

The serialization version of a token.

While the major/minor/micro versions are represented as Int at runtime, note that the serializer treats them as unsigned integers, so their range is 0 to 255.

We must increment major whenever there are incompatible structural changes on the part of the core library:

  1. changes to secret part structure 2. change to secret encryption algorithm, 3. change token signing algorithm 4. change to keyId -> key calculation Changes 2-4 could come from authentication library or if we overwrite the default values.
Source
TokenVersion.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TokenVersion
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TokenVersion(major: Int, minor: Int, micro: Int)

Value Members

  1. val major: Int
  2. val micro: Int
  3. val minor: Int