ro.isdc.wro.model.resource.support.hash
Class SHA1HashStrategy

java.lang.Object
  extended by ro.isdc.wro.model.resource.support.hash.AbstractDigesterHashStrategy
      extended by ro.isdc.wro.model.resource.support.hash.SHA1HashStrategy
All Implemented Interfaces:
HashBuilder, HashStrategy

public class SHA1HashStrategy
extends AbstractDigesterHashStrategy

Uses SHA1 algorithm for creating fingerprint.

Since:
1.4.7
Author:
Alex Objelean

Field Summary
static String ALIAS
          A short name of this strategy.
 
Constructor Summary
SHA1HashStrategy()
           
 
Method Summary
protected  MessageDigest newMessageDigest()
          
 
Methods inherited from class ro.isdc.wro.model.resource.support.hash.AbstractDigesterHashStrategy
getHash
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALIAS

public static final String ALIAS
A short name of this strategy.

See Also:
Constant Field Values
Constructor Detail

SHA1HashStrategy

public SHA1HashStrategy()
Method Detail

newMessageDigest

protected MessageDigest newMessageDigest()
                                  throws NoSuchAlgorithmException

Specified by:
newMessageDigest in class AbstractDigesterHashStrategy
Returns:
MessageDigest used for hashing.
Throws:
NoSuchAlgorithmException


Copyright © 2008-2013. All Rights Reserved.