private static void setValuesFromElement(BERoleConfig roleConfig, Element e) throws Exception { roleConfig.setCallSSL(getBoolean(e, _CALLSSL)); roleConfig.setCallBasicAuth(getBoolean(e, _CALLBASICAUTH)); roleConfig.setCallUsername(getString(e, _CALLUSERNAME)); roleConfig.setCallPassword(getString(e, _CALLPASSWORD)); roleConfig.setCallbackSSL(getBoolean(e, _CALLBACKSSL)); roleConfig.setCallbackBasicAuth(getBoolean(e, _CALLBACKBASICAUTH)); roleConfig.setIPList(getStringArray(e, _IPLIST)); }
@Override public void reloadPolicies(Context context) throws Exception { enforceReloadPolicies(context); xacmlPep.newPdp(); }
public Boolean getEffectiveCallbackSSL() { if (m_callbackSSL != null) { return m_callbackSSL; } else if (m_parent != null) { return m_parent.getEffectiveCallbackSSL(); } else { return Boolean.FALSE; } }
/** * Gets a new instance that uses the same schema as this one. * * @return a copy of this instance */ public PolicyParser copy() { return new PolicyParser(m_validators); }
public static void main(String[] args) throws Exception { BackendPolicies backendPolicies = new BackendPolicies(args[0], args[1]); backendPolicies.generateBackendPolicies(); } }
public Boolean getEffectiveCallBasicAuth() { if (m_callBasicAuth != null) { return m_callBasicAuth; } else if (m_parent != null) { return m_parent.getEffectiveCallBasicAuth(); } else { return Boolean.FALSE; } }
public Boolean getEffectiveCallSSL() { if (m_callSSL != null) { return m_callSSL; } else if (m_parent != null) { return m_parent.getEffectiveCallSSL(); } else { return Boolean.FALSE; } }
public String[] getEffectiveIPList() { if (m_ipList != null) { return m_ipList; } else if (m_parent != null) { return m_parent.getEffectiveIPList(); } else { return null; } }
public Boolean getEffectiveCallbackBasicAuth() { if (m_callbackBasicAuth != null) { return m_callbackBasicAuth; } else if (m_parent != null) { return m_parent.getEffectiveCallbackBasicAuth(); } else { return Boolean.FALSE; } }
/** * Initializes the static BackendSecuritySpec instance. * * @throws BackendSecurityParserException * If an error occurs in attempting to parse the beSecurity * configuration file. */ public void setBackendSecuritySpec() throws BackendSecurityParserException { beSS = parseBeSecurity(); }
public String getEffectiveCallUsername() { if (m_callUsername != null) { return m_callUsername; } else if (m_parent != null) { return m_parent.getEffectiveCallUsername(); } else { return null; } }
/** * Creates an instance that will validate according to the given schema. * * @param schemaStream the XSD schema to use for schema validation * @throws IOException if the schema can't be read * @throws SAXException if the schema isn't valid */ public PolicyParser(InputStream schemaStream) throws IOException, SAXException { this(getSchema(schemaStream)); }
public String getEffectiveCallPassword() { if (m_callPassword != null) { return m_callPassword; } else if (m_parent != null) { return m_parent.getEffectiveCallPassword(); } else { return null; } }
public FunctionFactory useTargetFunctions(FunctionFactory conditions, Set<Function> functions, Map<String,FunctionProxy> proxies, List<FunctionCluster> clusters) throws URISyntaxException { return functionFactory(conditions,functions,proxies,clusters); }
private static void setValuesFromElement(BERoleConfig roleConfig, Element e) throws Exception { roleConfig.setCallSSL(getBoolean(e, _CALLSSL)); roleConfig.setCallBasicAuth(getBoolean(e, _CALLBASICAUTH)); roleConfig.setCallUsername(getString(e, _CALLUSERNAME)); roleConfig.setCallPassword(getString(e, _CALLPASSWORD)); roleConfig.setCallbackSSL(getBoolean(e, _CALLBACKSSL)); roleConfig.setCallbackBasicAuth(getBoolean(e, _CALLBACKBASICAUTH)); roleConfig.setIPList(getStringArray(e, _IPLIST)); }
@Override public void reloadPolicies(Context context) throws Exception { enforceReloadPolicies(context); xacmlPep.newPdp(); }
public Boolean getEffectiveCallbackSSL() { if (m_callbackSSL != null) { return m_callbackSSL; } else if (m_parent != null) { return m_parent.getEffectiveCallbackSSL(); } else { return Boolean.FALSE; } }
public Boolean getEffectiveCallBasicAuth() { if (m_callBasicAuth != null) { return m_callBasicAuth; } else if (m_parent != null) { return m_parent.getEffectiveCallBasicAuth(); } else { return Boolean.FALSE; } }
public Boolean getEffectiveCallSSL() { if (m_callSSL != null) { return m_callSSL; } else if (m_parent != null) { return m_parent.getEffectiveCallSSL(); } else { return Boolean.FALSE; } }
public String[] getEffectiveIPList() { if (m_ipList != null) { return m_ipList; } else if (m_parent != null) { return m_parent.getEffectiveIPList(); } else { return null; } }