Class AES256SHA256Decoder

java.lang.Object
org.apache.commons.compress.archivers.sevenz.AbstractCoder
org.apache.commons.compress.archivers.sevenz.AES256SHA256Decoder

final class AES256SHA256Decoder extends AbstractCoder
  • Constructor Details

    • AES256SHA256Decoder

      AES256SHA256Decoder()
  • Method Details

    • sha256Password

      static byte[] sha256Password(byte[] password, int numCyclesPower, byte[] salt)
    • sha256Password

      static byte[] sha256Password(char[] password, int numCyclesPower, byte[] salt)
    • utf16Decode

      static byte[] utf16Decode(char[] chars)
      Convenience method that encodes Unicode characters into bytes in UTF-16 (little-endian byte order) charset
      Parameters:
      chars - characters to encode
      Returns:
      encoded characters
      Since:
      1.23
    • decode

      InputStream decode(String archiveName, InputStream in, long uncompressedLength, Coder coder, byte[] passwordBytes, int maxMemoryLimitInKb)
      Description copied from class: AbstractCoder
      Decodes using stream that reads from in using the configured coder and password.
      Specified by:
      decode in class AbstractCoder
      Returns:
      a stream that reads from in using the configured coder and password.
    • encode

      OutputStream encode(OutputStream out, Object options) throws IOException
      Description copied from class: AbstractCoder
      Encodes using a stream that writes to out using the given configuration.
      Overrides:
      encode in class AbstractCoder
      Returns:
      a stream that writes to out using the given configuration.
      Throws:
      IOException - Optionally thrown by subclassses.
    • getOptionsAsProperties

      byte[] getOptionsAsProperties(Object options) throws IOException
      Description copied from class: AbstractCoder
      Gets property bytes to write in a Folder block.
      Overrides:
      getOptionsAsProperties in class AbstractCoder
      Returns:
      property bytes to write in a Folder block.
      Throws:
      IOException - Optionally thrown by subclassses.