Interface DecryptorProvider

All Known Implementing Classes:
BootDecryptorProvider, DirDecryptorProvider, EntryDecryptorProvider, JarDecryptorProvider, JdkDecryptorProvider, NopDecryptorProvider, WrappedDecryptorProvider, ZipDecryptorProvider

public interface DecryptorProvider
解密器
Since:
Java 17+
Author:
Kimi Liu
  • Method Details

    • decrypt

      void decrypt(Key key, File src, File dest) throws IOException
      解密,将目标文件解密输出至目标文件
      Parameters:
      key - 密钥
      src - 源文件
      dest - 目标文件
      Throws:
      IOException - I/O 异常
    • decrypt

      void decrypt(Key key, InputStream in, OutputStream out) throws IOException
      解密,将输入流解密输出至输出流
      Parameters:
      key - 密钥
      in - 输入流
      out - 输出流
      Throws:
      IOException - I/O 异常
    • decrypt

      InputStream decrypt(Key key, InputStream in) throws IOException
      解密,将输入流包装成解密的输入流
      Parameters:
      key - 密钥
      in - 输入流
      Returns:
      解密后的输入流
      Throws:
      IOException - I/O 异常
    • decrypt

      OutputStream decrypt(Key key, OutputStream out) throws IOException
      解密,将输入流包装成解密的输出流
      Parameters:
      key - 密钥
      out - 输出流
      Returns:
      解密后的输出流
      Throws:
      IOException - I/O 异常