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

Author:
Johannes Schneider (js@cedarsoft.com)

Constructor Summary
ResourceHashCalculator()
          Deprecated.  
 
Method Summary
 Hash calculate(Algorithm algorithm, byte[] resource)
          Deprecated. calculate
 Hash calculate(Algorithm algorithm, InputStream resource)
          Deprecated. calculate
 Hash calculate(Algorithm algorithm, URL resource)
          Deprecated. calculate
 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. 

calculate

Parameters:
algorithm - a Algorithm object.
resource - a URL object.
Returns:
a Hash object.
Throws:
IOException - if any.

calculate

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

calculate

Parameters:
algorithm - a Algorithm object.
resource - a InputStream object.
Returns:
a Hash object.
Throws:
IOException - if any.

calculate

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

calculate

Parameters:
algorithm - a Algorithm object.
resource - an array of byte.
Returns:
a Hash object.
Throws:
IOException - if any.

calculateSHA1

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

calculateSHA1

Parameters:
resource - a InputStream object.
Returns:
a Hash object.
Throws:
IOException - if any.

calculateMD5

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

calculateMD5

Parameters:
resource - a InputStream object.
Returns:
a Hash object.
Throws:
IOException - if any.


Copyright © 2010 cedarsoft GmbH. All Rights Reserved.