public static void setProperty(String propertyName, String propertyValue) { try { getProperties().setProperty(propertyName, propertyValue); } catch (Exception ex) { } }
public static void setProperty(String propertyName, String propertyValue) { try { getProperties().setProperty(propertyName, propertyValue); } catch (Exception ex) { } }
protected static String getSourceProperty(String propertyName) { String result = System.getProperty(propertyName); if (result == null) { try { result = XACMLProperties.getProperties().getProperty(propertyName); } catch (Exception ex) { } } return result; }
protected static String getSourceProperty(String propertyName) { String result = System.getProperty(propertyName); if (result == null) { try { result = XACMLProperties.getProperties().getProperty(propertyName); } catch (Exception ex) { } } return result; }
public static String getProperty(String propertyName, String defaultValue) { String value = System.getProperty(propertyName); if (value == null) { Properties properties = null; try { properties = getProperties(); value = properties.getProperty(propertyName); } catch (Exception ex) { } } return (value == null ? defaultValue : value); }
public static String getProperty(String propertyName, String defaultValue) { String value = System.getProperty(propertyName); if (value == null) { Properties properties = null; try { properties = getProperties(); value = properties.getProperty(propertyName); } catch (Exception ex) { } } return (value == null ? defaultValue : value); }
XACMLProperties.getProperties().putAll(XACMLRest.restProperties); XACMLProperties.getProperties().putAll(policyProperties); XACMLProperties.getProperties().putAll(pipProperties); logger.debug(XACMLProperties.getProperties().toString()); } catch (IOException e) { logger.error("Cannot dump properties", e);
@Override public PIPFinder getFinder() throws PIPException { if (pipFinder == null) { synchronized(this) { if (pipFinder == null) { if (logger.isDebugEnabled()) { logger.debug("Creating default configurable engine finder"); } pipFinder = new ConfigurableEngineFinder(); Properties xacmlProperties = null; try { xacmlProperties = XACMLProperties.getProperties(); } catch (Exception ex) { logger.error("Exception getting XACML properties: " + ex.getMessage(), ex); return null; } if (xacmlProperties != null) { ((ConfigurableEngineFinder)pipFinder).configure(xacmlProperties); } } } } return pipFinder; }
@Override public PIPFinder getFinder() throws PIPException { if (pipFinder == null) { synchronized(this) { if (pipFinder == null) { pipFinder = new ConfigurableEngineFinder(); Properties xacmlProperties = null; try { xacmlProperties = XACMLProperties.getProperties(); } catch (Exception ex) { this.logger.error("Exception getting XACML properties: " + ex.getMessage(), ex); return null; } if (xacmlProperties != null) { ((ConfigurableEngineFinder)pipFinder).configure(xacmlProperties); } } } } return pipFinder; }
@Override public PIPFinder getFinder() throws PIPException { if (pipFinder == null) { synchronized(this) { if (pipFinder == null) { pipFinder = new ConfigurableEngineFinder(); Properties xacmlProperties = null; try { xacmlProperties = XACMLProperties.getProperties(); } catch (Exception ex) { this.logger.error("Exception getting XACML properties: " + ex.getMessage(), ex); return null; } if (xacmlProperties != null) { ((ConfigurableEngineFinder)pipFinder).configure(xacmlProperties); } } } } return pipFinder; }
@Override public PolicyFinder getPolicyFinder() throws FactoryException { try { this.init(XACMLProperties.getProperties()); } catch (IOException e) { throw new FactoryException(e); } return new StdPolicyFinder(this.rootPolicies, this.referencedPolicies); }
@Override public PolicyFinder getPolicyFinder() throws FactoryException { try { this.init(XACMLProperties.getProperties()); } catch (IOException e) { throw new FactoryException(e); } return new StdPolicyFinder(this.rootPolicies, this.referencedPolicies); }
logger.info(XACMLProperties.getProperties().toString()); } catch (IOException e) { logger.error("Failed to get XACML Properties", e);