Package google.registry.model.server
Class ServerSecret
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.common.CrossTldSingleton
-
- google.registry.model.server.ServerSecret
-
- All Implemented Interfaces:
java.lang.Cloneable
@Entity public class ServerSecret extends CrossTldSingleton
A secret number used for generating tokens (such as XSRF tokens).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
-
Field Summary
-
Fields inherited from class google.registry.model.common.CrossTldSingleton
SINGLETON_ID
-
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
-
Constructor Summary
Constructors Constructor Description ServerSecret()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
asBytes()
Returns the value of this ServerSecret as a byte array.static ServerSecret
get()
Returns the global ServerSecret instance, creating it if one isn't already in the database.-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
-
-
-
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.
-
-