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:
- 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
- Alphabetic
- By Inheritance
Inherited
- TokenVersion
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All