org.apache.ignite.spi.discovery.tcp.ipfinder.s3.encrypt

## Interface EncryptionService

- All Known Implementing Classes:
    AsymmetricKeyEncryptionService, AwsKmsEncryptionService, SymmetricKeyEncryptionService

      public interface EncryptionService

  A implementation of this interface should provide feature to encrypt/decrypt the data.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `decrypt(byte[] data)` Decrypt the input data.
    `byte[]` | `encrypt(byte[] data)` Encrypt the input data.
    `void` | `init()` For initialization operations.

- - ### Method Detail

    - #### init

          void init()

      For initialization operations. Must be called before the `encrypt(byte[])` and `decrypt(byte[])` are used.

    - #### encrypt

          byte[] encrypt(byte[] data)

      Encrypt the input data.
      Parameters:
        `data` - Data. bytes to be encrypted.
      Returns:
        The encrypted data bytes.
      Throws:
        `IllegalArgumentException` - If the parameter data is null.

    - #### decrypt

          byte[] decrypt(byte[] data)

      Decrypt the input data.
      Parameters:
        `data` - Encrypted data.
      Returns:
        Decrypted result.
      Throws:
        `IllegalArgumentException` - If the parameter data is null.

2021 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.11.0
Release Date | : September 11 2021