com.cedarsoft.crypt
Class HashCalculator

java.lang.Object
  extended by com.cedarsoft.crypt.HashCalculator

public class HashCalculator
extends Object


Method Summary
static Hash calculate(Algorithm algorithm, byte[] value)
           
static Hash calculate(Algorithm algorithm, File file)
           
static Hash calculate(Algorithm algorithm, InputStream resourceIn)
           
static Hash calculate(Algorithm algorithm, String value)
           
static Hash calculate(Algorithm algorithm, URL resource)
           
static Hash calculate(MessageDigest messageDigest, byte[] value)
           
static Hash calculate(MessageDigest messageDigest, File file)
           
static Hash calculate(MessageDigest messageDigest, InputStream resourceIn)
           
static Hash calculate(MessageDigest messageDigest, String value)
           
static Hash calculate(MessageDigest messageDigest, URL resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

calculate

@NotNull
public static Hash calculate(@NotNull
                                     Algorithm algorithm,
                                     @NotNull@NonNls
                                     byte[] value)

calculate

@NotNull
public static Hash calculate(@NotNull
                                     MessageDigest messageDigest,
                                     @NotNull@NonNls
                                     byte[] value)

calculate

@NotNull
public static Hash calculate(@NotNull
                                     Algorithm algorithm,
                                     @NotNull@NonNls
                                     String value)

calculate

@NotNull
public static Hash calculate(@NotNull
                                     MessageDigest messageDigest,
                                     @NotNull@NonNls
                                     String value)

calculate

@NotNull
public static Hash calculate(@NotNull
                                     Algorithm algorithm,
                                     @NotNull
                                     URL resource)
                      throws IOException
Throws:
IOException

calculate

@NotNull
public static Hash calculate(@NotNull
                                     MessageDigest messageDigest,
                                     @NotNull
                                     URL resource)
                      throws IOException
Throws:
IOException

calculate

@NotNull
public static Hash calculate(@NotNull
                                     Algorithm algorithm,
                                     @NotNull
                                     File file)
                      throws IOException
Throws:
IOException

calculate

@NotNull
public static Hash calculate(@NotNull
                                     MessageDigest messageDigest,
                                     @NotNull
                                     File file)
                      throws IOException
Throws:
IOException

calculate

@NotNull
public static Hash calculate(@NotNull
                                     Algorithm algorithm,
                                     @NotNull
                                     InputStream resourceIn)
                      throws IOException
Throws:
IOException

calculate

@NotNull
public static Hash calculate(@NotNull
                                     MessageDigest messageDigest,
                                     @NotNull
                                     InputStream resourceIn)
                      throws IOException
Throws:
IOException


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.