com.cedarsoft.utils.crypt
Class HashCalculator
java.lang.Object
com.cedarsoft.utils.crypt.HashCalculator
public class HashCalculator
- extends java.lang.Object
|
Method Summary |
static Hash |
calculate(Algorithm algorithm,
byte[] value)
|
static Hash |
calculate(Algorithm algorithm,
java.io.File file)
|
static Hash |
calculate(Algorithm algorithm,
java.io.InputStream resourceIn)
|
static Hash |
calculate(Algorithm algorithm,
java.lang.String value)
|
static Hash |
calculate(Algorithm algorithm,
java.net.URL resource)
|
static Hash |
calculate(java.security.MessageDigest messageDigest,
byte[] value)
|
static Hash |
calculate(java.security.MessageDigest messageDigest,
java.io.File file)
|
static Hash |
calculate(java.security.MessageDigest messageDigest,
java.io.InputStream resourceIn)
|
static Hash |
calculate(java.security.MessageDigest messageDigest,
java.lang.String value)
|
static Hash |
calculate(java.security.MessageDigest messageDigest,
java.net.URL resource)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
calculate
@NotNull
public static Hash calculate(@NotNull
Algorithm algorithm,
@NotNull@NonNls
byte[] value)
calculate
@NotNull
public static Hash calculate(@NotNull
java.security.MessageDigest messageDigest,
@NotNull@NonNls
byte[] value)
calculate
@NotNull
public static Hash calculate(@NotNull
Algorithm algorithm,
@NotNull@NonNls
java.lang.String value)
calculate
@NotNull
public static Hash calculate(@NotNull
java.security.MessageDigest messageDigest,
@NotNull@NonNls
java.lang.String value)
calculate
@NotNull
public static Hash calculate(@NotNull
Algorithm algorithm,
@NotNull
java.net.URL resource)
throws java.io.IOException
- Throws:
java.io.IOException
calculate
@NotNull
public static Hash calculate(@NotNull
java.security.MessageDigest messageDigest,
@NotNull
java.net.URL resource)
throws java.io.IOException
- Throws:
java.io.IOException
calculate
@NotNull
public static Hash calculate(@NotNull
Algorithm algorithm,
@NotNull
java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
calculate
@NotNull
public static Hash calculate(@NotNull
java.security.MessageDigest messageDigest,
@NotNull
java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
calculate
@NotNull
public static Hash calculate(@NotNull
Algorithm algorithm,
@NotNull
java.io.InputStream resourceIn)
throws java.io.IOException
- Throws:
java.io.IOException
calculate
@NotNull
public static Hash calculate(@NotNull
java.security.MessageDigest messageDigest,
@NotNull
java.io.InputStream resourceIn)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2009 cedarsoft GmbH. All Rights Reserved.