com.cedarsoft.crypt
Class ResourceHashCalculator

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

Deprecated.

@Deprecated
public class ResourceHashCalculator
extends java.lang.Object

Calculates the hashes of resources


Constructor Summary
ResourceHashCalculator()
          Deprecated.  
 
Method Summary
 Hash calculate(Algorithm algorithm, byte[] resource)
          Deprecated.  
 Hash calculate(Algorithm algorithm, java.io.InputStream resource)
          Deprecated.  
 Hash calculate(Algorithm algorithm, java.net.URL resource)
          Deprecated.  
 Hash calculateMD5(java.io.InputStream resource)
          Deprecated. 
 Hash calculateSHA1(java.io.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
                              java.net.URL resource)
               throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

calculate

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

calculate

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

calculateSHA1

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

Throws:
java.io.IOException

calculateMD5

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

Throws:
java.io.IOException


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.