public final class KeyPool
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
private class |
KeyPool.KeyList |
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
l1 |
private java.lang.Object |
l2 |
private boolean |
m_bDebug |
private boolean |
m_bRun |
private int |
m_iKeySize |
private int |
m_iPoolSize |
private KeyPool.KeyList |
m_keylistAktKey |
private KeyPool.KeyList |
m_keylistPool |
private static KeyPool |
m_KeyPool |
private java.lang.Thread |
m_KeyPoolThread |
private java.security.SecureRandom |
m_SecureRandom |
Modifier | Constructor and Description |
---|---|
private |
KeyPool(int poolsize,
int keylength,
boolean bDebug) |
Modifier and Type | Method and Description |
---|---|
static int |
getKey(byte[] key) |
static int |
getKey(byte[] key,
int offset) |
void |
run() |
static KeyPool |
start(boolean bDebug)
Warning: if bDebug==true then all keys are set to 0!
|
private void |
stop_internal() |
static void |
stop() |
private java.security.SecureRandom m_SecureRandom
private KeyPool.KeyList m_keylistPool
private KeyPool.KeyList m_keylistAktKey
private int m_iKeySize
private int m_iPoolSize
private java.lang.Object l1
private java.lang.Object l2
private volatile boolean m_bRun
private static KeyPool m_KeyPool
private java.lang.Thread m_KeyPoolThread
private boolean m_bDebug
public static KeyPool start(boolean bDebug)
public static void stop()
private void stop_internal()
public void run()
run
in interface java.lang.Runnable
public static int getKey(byte[] key)
public static int getKey(byte[] key, int offset)
Copyright © 2023. All rights reserved.