Class ServerSecret

  • All Implemented Interfaces:

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

      • ServerSecret

        public ServerSecret()
    • Method Detail

      • 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.