Class ServerSecret

  • All Implemented Interfaces:
    java.lang.Cloneable

    @Entity
    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 Datastore.
      • asBytes

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