Package aQute.libg.cryptography
Class SHA1
- java.lang.Object
-
- aQute.libg.cryptography.Digest
-
- aQute.libg.cryptography.SHA1
-
public class SHA1 extends Digest
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ALGORITHM
-
Constructor Summary
Constructors Constructor Description SHA1(byte[] b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SHA1
digest(byte[] data)
static SHA1
digest(java.io.File f)
static SHA1
digest(java.io.InputStream f)
java.lang.String
getAlgorithm()
static Digester<SHA1>
getDigester(java.io.OutputStream... out)
-
-
-
Field Detail
-
ALGORITHM
public static final java.lang.String ALGORITHM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithm
in classDigest
-
digest
public static SHA1 digest(byte[] data) throws java.lang.Exception
- Throws:
java.lang.Exception
-
digest
public static SHA1 digest(java.io.File f) throws java.security.NoSuchAlgorithmException, java.lang.Exception
- Throws:
java.security.NoSuchAlgorithmException
java.lang.Exception
-
digest
public static SHA1 digest(java.io.InputStream f) throws java.security.NoSuchAlgorithmException, java.lang.Exception
- Throws:
java.security.NoSuchAlgorithmException
java.lang.Exception
-
-