public class GenerationUtils extends Object
| Constructor and Description |
|---|
GenerationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateHash(String toHash)
Generates a one-pass SHA1 hash
|
static String |
generateHash(String secret,
String... fields) |
static String |
generateHash(String toHash,
String secret)
Each message sent to Realex should have a hash, attached.
|
static String |
generateOrderId()
Order Id for a initial request should be unique per client ID.
|
static String |
generateOrderId(String orderId) |
static String |
generateRecurringKey() |
static String |
generateRecurringKey(String key) |
static String |
generateTimestamp()
Generate the current datetimestamp in the string formaat (YYYYMMDDHHSS) required in a
request to Realex.
|
static String |
generateTimestamp(String timestamp) |
public static String generateHash(String toHash)
toHash - The value to hashpublic static String generateHash(String toHash, String secret)
toHash - The value to hashsecret - The shared secret to use in the second passpublic static String generateTimestamp()
public static String generateOrderId()
public static String generateRecurringKey()
Copyright © 2019. All rights reserved.