Package org.apache.jackrabbit.vault.util
Class SHA1
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.SHA1
-
public class SHA1 extends java.lang.Object
SHA1 abstraction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SHA1
digest(java.io.File file)
static SHA1
digest(java.io.InputStream in)
boolean
equals(java.lang.Object o)
byte[]
getBytes()
int[]
getInts()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
NULL
public static final SHA1 NULL
-
-
Method Detail
-
getInts
public int[] getInts()
-
getBytes
public byte[] getBytes()
-
digest
public static SHA1 digest(java.io.InputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
digest
public static SHA1 digest(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-