Class ServerSecret

All Implemented Interfaces:
Cloneable

@Entity public class ServerSecret extends CrossTldSingleton
A secret number used for generating tokens (such as XSRF tokens).
  • Constructor Details

    • ServerSecret

      public ServerSecret()
  • Method Details

    • get

      public static ServerSecret get()
      Returns the global ServerSecret instance, creating it if one isn't already in the database.
    • asBytes

      public byte[] asBytes()
      Returns the value of this ServerSecret as a byte array.