Compiere 3.1

org.compiere.util
Class SecureEngine

java.lang.Object
  extended by org.compiere.util.SecureEngine

public class SecureEngine
extends Object

Security Engine

Version:
$Id: SecureEngine.java,v 1.2 2006/07/30 00:52:23 jjanke Exp $
Author:
Jorg Janke

Method Summary
static Object decrypt(Object value)
          Decryption.
static String decrypt(String value)
          Decryption.
static Object encrypt(Object value)
          Encryption.
static String encrypt(String value)
          Encryption.
static String getClassName()
          Get Class Name
static String getDigest(String value)
          Convert String to Digest.
static void init(Properties prop)
          Initialize Security
static void init(String className)
          Initialize/Test Security
static boolean isEncrypted(String value)
          Is Encrypted
static void main(String[] args)
          main
protected static void reset()
          Reset - don't call when application is up!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init(Properties prop)
Initialize Security

Parameters:
ctx - context with COMPIERE_SECURE class name

init

public static void init(String className)
Initialize/Test Security

Parameters:
className - class name

reset

protected static void reset()
Reset - don't call when application is up!


getClassName

public static String getClassName()
Get Class Name

Returns:
class name

getDigest

public static String getDigest(String value)
Convert String to Digest. JavaScript version see - http://pajhome.org.uk/crypt/md5/index.html

Parameters:
value - message
Returns:
HexString of message (length = 32 characters)

encrypt

public static String encrypt(String value)
Encryption. The methods must recognize clear text values

Parameters:
value - clear value
Returns:
encrypted String

decrypt

public static String decrypt(String value)
Decryption. The methods must recognize clear text values

Parameters:
value - encrypted value
Returns:
decrypted String

isEncrypted

public static boolean isEncrypted(String value)
Is Encrypted

Parameters:
value - value
Returns:
true if value is an encrypted String

encrypt

public static Object encrypt(Object value)
Encryption. The methods must recognize clear values

Parameters:
value - clear value
Returns:
encrypted String

decrypt

public static Object decrypt(Object value)
Decryption. The methods must recognize clear values

Parameters:
value - encrypted value
Returns:
decrypted String

main

public static void main(String[] args)
main

Parameters:
args -

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.