Checksum

Version 1.7 - Updated on 05/04/2017

public class Checksum

Utility class for calculating SHA-256 checksum for a file or input stream of data. SHA-256 checksum is a required parameter for the file upload methods, such as getFileUploadIntent, postFileUpload, postFileChunk, and postCommit.

SEE ALSO:

SHA256

public static String SHA256(File file) throws IOException

Calculate SHA-256 checksum for a file.

  • Parameters: file
  • Returns:
  • Exceptions: IOException — HTTP request failure

SHA256

public static String SHA256(InputStream is) throws IOException

Calculate SHA-256 checksum for a stream of data.

  • Parameters: is
  • Returns:
  • Exceptions: IOException — HTTP request failure

Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.