Package org.apache.jackrabbit.vault.util
Class SHA1
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.SHA1
-
public class SHA1 extends Object
SHA1 abstraction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SHA1digest(File file)static SHA1digest(InputStream in)booleanequals(Object o)byte[]getBytes()int[]getInts()inthashCode()StringtoString()
-
-
-
Field Detail
-
NULL
public static final SHA1 NULL
-
-
Constructor Detail
-
SHA1
public SHA1(int w0, int w1, int w2, int w3, int w4)
-
SHA1
public SHA1(String str)
-
SHA1
public SHA1(byte[] bytes)
-
-
Method Detail
-
getInts
public int[] getInts()
-
getBytes
public byte[] getBytes()
-
digest
public static SHA1 digest(InputStream in) throws IOException
- Throws:
IOException
-
digest
public static SHA1 digest(File file) throws IOException
- Throws:
IOException
-
-