com.cedarsoft.crypt
Class ResourceHashCalculator

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

Deprecated.

@Deprecated
public class ResourceHashCalculator
extends Object

Calculates the hashes of resources


Constructor Summary
ResourceHashCalculator()
          Deprecated.  
 
Method Summary
 Hash calculate(Algorithm algorithm, byte[] resource)
          Deprecated.  
 Hash calculate(Algorithm algorithm, InputStream resource)
          Deprecated.  
 Hash calculate(Algorithm algorithm, URL resource)
          Deprecated.  
 Hash calculateMD5(InputStream resource)
          Deprecated. 
 Hash calculateSHA1(InputStream resource)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceHashCalculator

public ResourceHashCalculator()
Deprecated. 
Method Detail

calculate

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

calculate

@NotNull
public Hash calculate(@NotNull
                              Algorithm algorithm,
                              @NotNull
                              InputStream resource)
               throws IOException
Deprecated. 
Throws:
IOException

calculate

@NotNull
public Hash calculate(@NotNull
                              Algorithm algorithm,
                              @NotNull
                              byte[] resource)
               throws IOException
Deprecated. 
Throws:
IOException

calculateSHA1

@Deprecated
@NotNull
public Hash calculateSHA1(@NotNull
                                             InputStream resource)
                   throws IOException
Deprecated. 

Throws:
IOException

calculateMD5

@Deprecated
@NotNull
public Hash calculateMD5(@NotNull
                                            InputStream resource)
                  throws IOException
Deprecated. 

Throws:
IOException


Copyright © 2010 cedarsoft GmbH. All Rights Reserved.