Class CsrfSessionTokenFactorySecureRandom


  • public class CsrfSessionTokenFactorySecureRandom
    extends CsrfSessionTokenFactory
    This factory generate a key composed by a counter and a random number. The counter ensures uniqueness, and the random number prevents guess the next session token.
    Since:
    2.2
    Author:
    Leonardo Uribe
    • Field Detail

      • RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_CLASS_PARAM

        @JSFWebConfigParam(since="2.2.0",
                           group="state")
        public static final String RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_CLASS_PARAM
        Sets the random class to initialize the secure random id generator. By default it uses java.security.SecureRandom
        See Also:
        Constant Field Values
      • RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_PROVIDER_PARAM

        @JSFWebConfigParam(since="2.2.0",
                           group="state")
        public static final String RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_PROVIDER_PARAM
        Sets the random provider to initialize the secure random id generator.
        See Also:
        Constant Field Values
      • RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_ALGORITM_PARAM

        @JSFWebConfigParam(since="2.2.0",
                           defaultValue="SHA1PRNG",
                           group="state")
        public static final String RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_ALGORITM_PARAM
        Sets the random algorithm to initialize the secure random id generator. By default is SHA1PRNG
        See Also:
        Constant Field Values
    • Constructor Detail

      • CsrfSessionTokenFactorySecureRandom

        public CsrfSessionTokenFactorySecureRandom​(FacesContext facesContext)