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 Details

  • Constructor Details

    • SecureRandomService

      public SecureRandomService()
    • SecureRandomService

      public SecureRandomService(org.exoplatform.container.xml.InitParams initParams)
  • Method Details

    • getSecureRandom

      public SecureRandom getSecureRandom()
      Specified by:
      getSecureRandom in interface org.picketlink.idm.api.SecureRandomProvider
    • start

      public void start()
      Specified by:
      start in interface org.picocontainer.Startable
    • stop

      public void stop()
      Specified by:
      stop in interface org.picocontainer.Startable