# Deprecated API

## Contents

- Constructors

- Constructors
  Constructor | Description
  --- | ---
  io.axoniq.dataprotection.api.FieldEncrypter​(CryptoEngine) | in favor of using the `FieldEncrypter(CryptoEngine, Serializer)` to construct an instance using a configured `Serializer` instance. Using this shorthand still works, but will use an `XStream` instance that allows everything. Although this works, XStream expects the types or wildcards for the types to be defined to ensure the application stays secure. As such, it is highly recommended to follow their recommended approach.
  io.axoniq.dataprotection.api.FieldEncryptingSerializer​(CryptoEngine, Serializer) | in favor of using the `FieldEncryptingSerializer(CryptoEngine, Serializer, Serializer)` to construct an instance using a configured `Serializer` instances. Using this shorthand still works, but will use an `XStream` instance that allows everything. Although this works, XStream expects the types or wildcards for the types to be defined to ensure the application stays secure. As such, it is highly recommended to follow their recommended approach.