public abstract class BaseAXSRFTVendingMachine extends Object implements IAXSRFTVendingMachine
Modifier and Type | Field and Description |
---|---|
protected List<InetAddress[]> |
m_whitelist
List of client addresses or ranges of addresses
which never require an anti-cross-site-request-forgery token.
|
Constructor and Description |
---|
BaseAXSRFTVendingMachine() |
Modifier and Type | Method and Description |
---|---|
protected HttpServletRequest |
getRequest(FacesContext context)
Returns the current portal request or null.
|
List<InetAddress[]> |
getWhitelist()
List of client addresses or ranges of addresses
which never require an anti-cross-site-request-forgery token.
|
boolean |
inWhitelist(String address)
Returns true if the specified address is in the whitelist
of client addresses which never require an anti-cross-site-request-forgery token.
|
void |
parseWhitelist(String whitelist)
Sets the list of addresses or ranges of addresses
which never require an anti-cross-site-request-forgery token,
using the specified comma-separated list of allowed
ip addresses, ip-address ranges, or host names.
|
void |
setWhitelist(List<InetAddress[]> whitelist)
List of client addresses or ranges of addresses
which never require an anti-cross-site-request-forgery token.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acceptToken, acceptToken, produceToken, produceToken, produceToken
protected List<InetAddress[]> m_whitelist
InetAddress
s.
Each entry should either contain the same InetAddress
twice,
to indicate that specific is allowed;
or it should contain two different InetAddress
s
(the first lower than the second), indicating that any ip address
between the two InetAddress
s (inclusive) is allowed.
public List<InetAddress[]> getWhitelist()
InetAddress
s.
Each entry should either contain the same InetAddress
twice,
to indicate that specific is allowed;
or it should contain two different InetAddress
s
(the first lower than the second), indicating that any ip address
between the two InetAddress
s (inclusive) is allowed.
public void setWhitelist(List<InetAddress[]> whitelist)
InetAddress
s.
Each entry should either contain the same InetAddress
twice,
to indicate that specific is allowed;
or it should contain two different InetAddress
s
(the first lower than the second), indicating that any ip address
between the two InetAddress
s (inclusive) is allowed.
public void parseWhitelist(String whitelist)
whitelist
- Comma-separated list of allowed addresses.setWhitelist(java.util.List<java.net.InetAddress[]>)
public boolean inWhitelist(String address)
protected HttpServletRequest getRequest(FacesContext context)