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:
Cloneable
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
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
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
-
Constructor Details
-
ServerSecret
public ServerSecret()
-
-
Method Details
-
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.
-