aQute.libg.cryptography
Class SHA1

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

public class SHA1
extends Digest


Field Summary
static String ALGORITHM
           
 
Constructor Summary
SHA1(byte[] b)
           
 
Method Summary
static SHA1 digest(byte[] data)
           
static SHA1 digest(File f)
           
static SHA1 digest(InputStream f)
           
 String getAlgorithm()
           
static Digester<SHA1> 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

SHA1

public SHA1(byte[] b)
Method Detail

getDigester

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

getAlgorithm

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

digest

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

digest

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

digest

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


Copyright © 2014 aQute SARL. All rights reserved.