public class SecureRandomService extends Object implements org.picocontainer.Startable, org.picketlink.idm.api.SecureRandomProvider
SecureRandom that is granted to be reseeded regularly. It starts fast thanks to
seeding the underlying SecureRandom in a dedicated initialisation thread.| Modifier and Type | Field and Description |
|---|---|
protected static String |
RANDOM_ALGORITHM |
protected static String |
RANDOM_ALGORITHM_PROVIDER |
protected static String |
RANDOM_RESEEDING_PERIOD_MILLISECONDS |
protected static String |
RANDOM_SEED_LENGTH_BYTES |
| Constructor and Description |
|---|
SecureRandomService() |
SecureRandomService(org.exoplatform.container.xml.InitParams initParams) |
| Modifier and Type | Method and Description |
|---|---|
SecureRandom |
getSecureRandom() |
void |
start() |
void |
stop() |
protected static final String RANDOM_ALGORITHM
protected static final String RANDOM_ALGORITHM_PROVIDER
protected static final String RANDOM_RESEEDING_PERIOD_MILLISECONDS
protected static final String RANDOM_SEED_LENGTH_BYTES
public SecureRandomService()
public SecureRandomService(org.exoplatform.container.xml.InitParams initParams)
public SecureRandom getSecureRandom()
getSecureRandom in interface org.picketlink.idm.api.SecureRandomProviderpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.StartableCopyright © 2017 JBoss by Red Hat. All Rights Reserved.