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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.digest.Base64EncodedHashDigest
Direct Known Subclasses:
ShaHashDigest

public abstract class Base64EncodedHashDigest
extends Object

Author:
Daniel Meyer

Constructor Summary
Base64EncodedHashDigest()
           
 
Method Summary
 boolean check(String password, String encrypted)
           
protected  byte[] createByteHash(String password)
           
protected  MessageDigest createDigestInstance()
           
protected  String encodeHash(byte[] hash)
           
 String encrypt(String password)
           
protected abstract  String getAlgorithmName()
          allows subclasses to select the hash algorithm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64EncodedHashDigest

public Base64EncodedHashDigest()
Method Detail

encrypt

public String encrypt(String password)

check

public boolean check(String password,
                     String encrypted)

createByteHash

protected byte[] createByteHash(String password)

createDigestInstance

protected MessageDigest createDigestInstance()

encodeHash

protected String encodeHash(byte[] hash)

getAlgorithmName

protected abstract String getAlgorithmName()
allows subclasses to select the hash algorithm



Copyright © 2016 camunda services GmbH. All rights reserved.