net.simplace.core.service.SecurityHelper
Security Helper provides methods createing and checking signatures and md5-encryptions.
public final class SecurityHelper {
// Constants
public static final int CERTIFICATE_UNCHECKED;
public static final int CERTIFICATE_VALID;
public static final int CERTIFICATE_MISSING;
public static final int CERTIFICATE_NOT_YET_VALID;
public static final int CERTIFICATE_EXPIRED;
public static final int CERTIFICATE_INVALID;
// Class Methods public static int
getCertificateState(String aUserName, X509Certificate
aCertificate);
Returns the current state of the given certificate. For the possible states,
returns the current state of the given certificate
public static HashMap getCertificateStatusHashMap();
Sets the TenderEventTypes default values.
returns HashMap of TenderEventTypes default values
public static String
getCRC64Digest(String aString);
Creates a hash value of the given string by the CRC64-algorithm.
returns a hash value of the given string by the CRC64-algorithm
public static String
decodeBlowfish(String aEncryptedString)
throws Exception;
decoding String with Blowfish for DB-Connection
returns decrypted String
public static String
encodeBlowfish(String aSecretString) throws Exception;
encoding String with Blowfish for DB-Connection
- aDecryptedString
- aSecretString
returns encrypted String
public static void
main(String[] args) throws Exception;
Main entry point to encrypt a password using the hard-coded pass phrase
- args - [0] = the method to be called (encode|decode)
- args - [1] = the password to encode or decode
public static String
encryptPasswordMD5(String aPassword);
Encrypts the password in a secure one-way-algorithm.
returns encrypted String
}