Class DataCodecType<K>
java.lang.Object
org.geysermc.floodgate.core.crypto.DataCodecType<K>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataCodecType<SecretKey>static final DataCodecType<KeyPair> -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable DataCodecType<?>Gets a data codec type by its namecreateDataCodec(Path keyDirectory) Creates (and initializes) a data codec, for a given directory.keyCodec()Returns the KeyCodec instance for the given type.Returns the KeyProducer instance for the given type.name()Returns the name of the data codec type
-
Field Details
-
AES
-
ED25519
-
-
Method Details
-
name
Returns the name of the data codec type -
keyProducer
Returns the KeyProducer instance for the given type. -
keyCodec
Returns the KeyCodec instance for the given type. -
createDataCodec
Creates (and initializes) a data codec, for a given directory.- Throws:
IOException- as described inKeyCodec.decode(Path)- See Also:
-
byName
Gets a data codec type by its name- Parameters:
name- the name (case-insensitive)- Returns:
- the type, otherwise null
-