@Configurable public class TransactionalSecurityConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableSet<IPAddress> |
allowedProxies |
private static TransactionalSecurityConfiguration |
instance |
private boolean |
transactionalActive |
private com.google.common.collect.ImmutableSet<IPAddressRange> |
transactionalAllowedIps
List of CIDR encoded or raw IP ranges allowed to make transactional
requests
|
private String |
transactionalToken
Authorization token required for transactional requests
|
Modifier | Constructor and Description |
---|---|
private |
TransactionalSecurityConfiguration()
private constructor for singleton
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableSet<IPAddressRange> |
getAllowedAddresses() |
com.google.common.collect.ImmutableSet<IPAddress> |
getAllowedProxies() |
static TransactionalSecurityConfiguration |
getInstance() |
String |
getTransactionalToken() |
boolean |
isSetTransactionalAllowedIps() |
boolean |
isSetTransactionalSecurityActive() |
boolean |
isSetTransactionalToken() |
boolean |
isTransactionalActive() |
void |
setAllowedProxies(String proxies) |
void |
setTransactionalActive(boolean transactionalActive) |
void |
setTransactionalAllowedIps(String txAllowedIps) |
void |
setTransactionalToken(String txToken) |
private static TransactionalSecurityConfiguration instance
private boolean transactionalActive
private com.google.common.collect.ImmutableSet<IPAddressRange> transactionalAllowedIps
private String transactionalToken
private com.google.common.collect.ImmutableSet<IPAddress> allowedProxies
private TransactionalSecurityConfiguration()
public static TransactionalSecurityConfiguration getInstance()
public boolean isTransactionalActive()
@Setting(value="service.security.transactional.active") public void setTransactionalActive(boolean transactionalActive)
transactionalActive
- the transactionalActive to setpublic com.google.common.collect.ImmutableSet<IPAddressRange> getAllowedAddresses()
@Setting(value="service.transactionalAllowedIps") public void setTransactionalAllowedIps(String txAllowedIps) throws ConfigurationException
ConfigurationException
@Setting(value="service.transactionalAllowedProxies") public void setAllowedProxies(String proxies)
public com.google.common.collect.ImmutableSet<IPAddress> getAllowedProxies()
public String getTransactionalToken()
@Setting(value="service.transactionalToken") public void setTransactionalToken(String txToken)
public boolean isSetTransactionalSecurityActive()
public boolean isSetTransactionalAllowedIps()
public boolean isSetTransactionalToken()
Copyright © 2012-2015 52north.org. All Rights Reserved.