Class SecureRandomService
java.lang.Object
org.exoplatform.web.security.security.SecureRandomService
- All Implemented Interfaces:
org.picketlink.idm.api.SecureRandomProvider,org.picocontainer.Startable
public class SecureRandomService
extends Object
implements org.picocontainer.Startable, org.picketlink.idm.api.SecureRandomProvider
A central service for getting a
SecureRandom that is granted to be reseeded regularly. It starts fast thanks to
seeding the underlying SecureRandom in a dedicated initialisation thread.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
RANDOM_ALGORITHM
- See Also:
-
RANDOM_ALGORITHM_PROVIDER
- See Also:
-
RANDOM_RESEEDING_PERIOD_MILLISECONDS
- See Also:
-
RANDOM_SEED_LENGTH_BYTES
- See Also:
-
-
Constructor Details
-
SecureRandomService
public SecureRandomService() -
SecureRandomService
public SecureRandomService(org.exoplatform.container.xml.InitParams initParams)
-
-
Method Details
-
getSecureRandom
- Specified by:
getSecureRandomin interfaceorg.picketlink.idm.api.SecureRandomProvider
-
start
public void start()- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.picocontainer.Startable
-