@SessionScoped public class CSRFTokenGenerator extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
maxTokens |
protected List<String> |
tokenList |
protected String |
tokenName |
protected int |
tokenSize |
Constructor and Description |
---|
CSRFTokenGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
generateToken() |
String |
getLastToken() |
String |
getTokenName() |
protected void |
init() |
boolean |
isValidToken(String token) |
static CSRFTokenGenerator |
lookup() |
protected String tokenName
protected int maxTokens
protected int tokenSize
public static CSRFTokenGenerator lookup()
@PostConstruct protected void init()
public String getTokenName()
public String generateToken()
public String getLastToken()
public boolean isValidToken(String token)
Copyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.