aQute.libg.cryptography
Class SHA256

java.lang.Object
  extended by aQute.libg.cryptography.Digest
      extended by aQute.libg.cryptography.SHA256

public class SHA256
extends Digest


Field Summary
static String ALGORITHM
           
 
Constructor Summary
SHA256(byte[] b)
           
 
Method Summary
static SHA256 digest(byte[] data)
           
static SHA256 digest(File f)
           
static SHA256 digest(InputStream f)
           
 String getAlgorithm()
           
static Digester<SHA256> getDigester(OutputStream... out)
           
 
Methods inherited from class aQute.libg.cryptography.Digest
asHex, digest, equals, hashCode, toByteArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ALGORITHM

public static final String ALGORITHM
See Also:
Constant Field Values
Constructor Detail

SHA256

public SHA256(byte[] b)
Method Detail

getDigester

public static Digester<SHA256> getDigester(OutputStream... out)
                                    throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

getAlgorithm

public String getAlgorithm()
Specified by:
getAlgorithm in class Digest

digest

public static SHA256 digest(byte[] data)
                     throws Exception
Throws:
Exception

digest

public static SHA256 digest(File f)
                     throws NoSuchAlgorithmException,
                            Exception
Throws:
NoSuchAlgorithmException
Exception

digest

public static SHA256 digest(InputStream f)
                     throws NoSuchAlgorithmException,
                            Exception
Throws:
NoSuchAlgorithmException
Exception


Copyright © 2014 aQute SARL. All rights reserved.