public class CsrfSessionTokenFactorySecureRandom extends CsrfSessionTokenFactory
Modifier and Type | Field and Description |
---|---|
static String |
RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_ALGORITM_PARAM
Sets the random algorithm to initialize the secure random id generator.
|
static String |
RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_CLASS_PARAM
Sets the random class to initialize the secure random id generator.
|
static String |
RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_PROVIDER_PARAM
Sets the random provider to initialize the secure random id generator.
|
RANDOM_KEY_IN_CSRF_SESSION_TOKEN_LENGTH_PARAM, RANDOM_KEY_IN_CSRF_SESSION_TOKEN_LENGTH_PARAM_DEFAULT
Constructor and Description |
---|
CsrfSessionTokenFactorySecureRandom(FacesContext facesContext) |
Modifier and Type | Method and Description |
---|---|
String |
createToken(FacesContext context) |
protected byte[] |
generateKey(FacesContext facesContext) |
@JSFWebConfigParam(since="2.2.0", group="state") public static final String 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_PROVIDER_PARAM
@JSFWebConfigParam(since="2.2.0", defaultValue="SHA1PRNG", group="state") public static final String RANDOM_KEY_IN_CSRF_SESSION_TOKEN_SECURE_RANDOM_ALGORITM_PARAM
public CsrfSessionTokenFactorySecureRandom(FacesContext facesContext)
protected byte[] generateKey(FacesContext facesContext)
public String createToken(FacesContext context)
createToken
in class CsrfSessionTokenFactory
Copyright © 2021 The Apache Software Foundation. All rights reserved.