org.camunda.bpm.engine.impl.digest
Class ShaHashDigest

java.lang.Object
  extended by org.camunda.bpm.engine.impl.digest.Base64EncodedHashDigest
      extended by org.camunda.bpm.engine.impl.digest.ShaHashDigest
All Implemented Interfaces:
PasswordEncryptor

public class ShaHashDigest
extends Base64EncodedHashDigest
implements PasswordEncryptor

PasswordEncryptor implementation using base64 encoded SHA password hashes

Author:
Daniel Meyer

Constructor Summary
ShaHashDigest()
           
 
Method Summary
 String encrypt(String password)
          Encrypt the given password
protected  String getAlgorithmName()
          allows subclasses to select the hash algorithm
 
Methods inherited from class org.camunda.bpm.engine.impl.digest.Base64EncodedHashDigest
check, createByteHash, createDigestInstance, encodeHash
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.camunda.bpm.engine.impl.digest.PasswordEncryptor
check
 

Constructor Detail

ShaHashDigest

public ShaHashDigest()
Method Detail

getAlgorithmName

protected String getAlgorithmName()
Description copied from class: Base64EncodedHashDigest
allows subclasses to select the hash algorithm

Specified by:
getAlgorithmName in class Base64EncodedHashDigest

encrypt

public String encrypt(String password)
Description copied from interface: PasswordEncryptor
Encrypt the given password

Specified by:
encrypt in interface PasswordEncryptor
Overrides:
encrypt in class Base64EncodedHashDigest
Returns:


Copyright © 2014 camunda services GmbH. All Rights Reserved.