|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgoldengate.common.crypto.KeyObject
goldengate.common.crypto.DynamicKeyObject
public class DynamicKeyObject
This class handles methods to encrypt and unencrypt messages with any available
algorithms in the JVM.
AES is the best compromise in term of security and efficiency.
Usage:
Nested Class Summary | |
---|---|
static class |
DynamicKeyObject.INSTANCES
Minimal key size |
static class |
DynamicKeyObject.INSTANCESMAX
Recommended key size when normal JVM installed (no extension on encrypt support) |
Field Summary | |
---|---|
String |
ALGO
Short name for the algorithm |
String |
EXTENSION
The extension for the file to use when saving the key (note that an extra file as extension.inf will be also saved for the extra information) |
String |
INSTANCE
Could be the shortname again (default implementation in JVM) or the full name as DES/ECB/PKCS5Padding |
int |
KEY_SIZE
This value could be between 32 and 128 due to license limitation. |
Constructor Summary | |
---|---|
DynamicKeyObject(DynamicKeyObject.INSTANCESMAX instance,
String eXTENSION)
|
|
DynamicKeyObject(DynamicKeyObject.INSTANCES instance,
String eXTENSION)
|
|
DynamicKeyObject(int kEYSIZE,
String aLGO,
String iNSTANCE,
String eXTENSION)
|
Method Summary | |
---|---|
String |
getAlgorithm()
|
String |
getInstance()
|
int |
getKeySize()
|
static void |
main(String[] args)
This method allows to test the correctness of this class |
Methods inherited from class goldengate.common.crypto.KeyObject |
---|
crypt, crypt, cryptToHex, cryptToHex, decodeHex, decrypt, decryptHexFile, decryptHexInBytes, decryptHexInBytes, decryptHexInString, decryptInString, encodeHex, generateKey, getSecretKey, getSecretKeyInBytes, keyReady, saveSecretKey, setSecretKey, setSecretKey, setSecretKey, toCrypt, toDecrypt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int KEY_SIZE
public final String ALGO
public final String INSTANCE
public final String EXTENSION
Constructor Detail |
---|
public DynamicKeyObject(int kEYSIZE, String aLGO, String iNSTANCE, String eXTENSION)
kEYSIZE
- example DES: 56aLGO
- example DES: DESiNSTANCE
- example DES: DES/ECB/PKCS5PaddingeXTENSION
- example DES: despublic DynamicKeyObject(DynamicKeyObject.INSTANCES instance, String eXTENSION)
instance
- the minimal default instanceeXTENSION
- to use for filespublic DynamicKeyObject(DynamicKeyObject.INSTANCESMAX instance, String eXTENSION)
instance
- the maximal default instanceeXTENSION
- to use for filesMethod Detail |
---|
public String getAlgorithm()
getAlgorithm
in class KeyObject
public String getInstance()
getInstance
in class KeyObject
public int getKeySize()
getKeySize
in class KeyObject
public static void main(String[] args) throws Exception
args
-
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |