public final class ConfigLoader extends Object
| Constructor and Description |
|---|
ConfigLoader(Path dataDirectory,
Class<? extends FloodgateConfig> configClass,
org.geysermc.floodgate.crypto.KeyProducer keyProducer,
org.geysermc.floodgate.crypto.FloodgateCipher cipher) |
| Modifier and Type | Method and Description |
|---|---|
void |
generateKey(Path keyPath) |
org.geysermc.floodgate.crypto.FloodgateCipher |
getCipher() |
Class<? extends FloodgateConfig> |
getConfigClass() |
Path |
getDataDirectory() |
org.geysermc.floodgate.crypto.KeyProducer |
getKeyProducer() |
<T extends FloodgateConfig> |
load() |
public ConfigLoader(Path dataDirectory, Class<? extends FloodgateConfig> configClass, org.geysermc.floodgate.crypto.KeyProducer keyProducer, org.geysermc.floodgate.crypto.FloodgateCipher cipher)
public <T extends FloodgateConfig> T load()
public void generateKey(Path keyPath)
public Path getDataDirectory()
public Class<? extends FloodgateConfig> getConfigClass()
public org.geysermc.floodgate.crypto.KeyProducer getKeyProducer()
public org.geysermc.floodgate.crypto.FloodgateCipher getCipher()