Tabnine Logo
PDPConfig
Code IndexAdd Tabnine to your IDE (free)

How to use
PDPConfig
in
org.jboss.security.xacml.sunxacml

Best Java code snippets using org.jboss.security.xacml.sunxacml.PDPConfig (Showing top 11 results out of 315)

origin: fcrepo3/fcrepo

public MelcoePDPImpl(PDPConfig pdpConfig)
    throws MelcoePDPException {
  m_pdp = new PDP(pdpConfig);
  m_finder = pdpConfig.getAttributeFinder();
  logger.info("PDP Instantiated and initialised!");
}
origin: org.jboss.security/jboss-sunxacml

/**
 * Constructs a new <code>PDP</code> object with the given configuration
 * information.
 *
 * @param config user configuration data defining how to find policies,
 *               resolve external attributes, etc.
 */
public PDP(PDPConfig config) {
  logger.fine("creating a PDP");
  attributeFinder = config.getAttributeFinder();
  policyFinder = config.getPolicyFinder();
  policyFinder.init();
  resourceFinder = config.getResourceFinder();
}
origin: org.jboss.security/jboss-sunxacml

/**
 * Private helper that handles the pdp elements.
 */
private PDPConfig parsePDPConfig(Node root) throws ParsingException {
  ArrayList attrModules = new ArrayList();
  HashSet policyModules = new HashSet();
  ArrayList rsrcModules = new ArrayList();
  // go through all elements of the pdp, loading the specified modules
  NodeList children = root.getChildNodes();
  for (int i = 0; i < children.getLength(); i++) {
    Node child = children.item(i);
    String name = SunxacmlUtil.getNodeName(child);
    if (name.equals("policyFinderModule")) {
      policyModules.add(loadClass("module", child));
    } else if (name.equals("attributeFinderModule")) {
      attrModules.add(loadClass("module", child));
    } else if (name.equals("resourceFinderModule")) {
      rsrcModules.add(loadClass("module", child));
    }
  }
  // after loading the modules, use the collections to setup a
  // PDPConfig based on this pdp element
  AttributeFinder attrFinder = new AttributeFinder();
  attrFinder.setModules(attrModules);
  PolicyFinder policyFinder = new PolicyFinder();
  policyFinder.setModules(policyModules);
  ResourceFinder rsrcFinder = new ResourceFinder();
  rsrcFinder.setModules(rsrcModules);
  return new PDPConfig(attrFinder, policyFinder, rsrcFinder);
}
origin: org.jboss.security/jboss-sunxacml

pdp = new PDP(new PDPConfig(attributeFinder, policyFinder, null));
origin: fcrepo3/fcrepo

  response = m_pdp.evaluate(new BasicEvaluationCtx(request, m_pdpConfig.getAttributeFinder(), context));
} finally {
  long dur = System.currentTimeMillis() - st;
origin: org.fcrepo/fcrepo-server

public PDPConfig getPDPConfig(List<AttributeFinderModule> attributeFinders,
               Set<PolicyFinderModule> policyFinders,
               List<ResourceFinderModule> resourceFinders) {
  AttributeFinder attr = new AttributeFinder();
  attr.setModules(attributeFinders);
  PolicyFinder policy = new PolicyFinder();
  policy.setModules(policyFinders);
  ResourceFinder rsrc = new ResourceFinder();
  rsrc.setModules(resourceFinders);
  return new PDPConfig(attr, policy, rsrc);
}

origin: org.fcrepo/fcrepo-server

try {
  response = m_pdp.evaluate(new BasicEvaluationCtx(request, m_pdpConfig.getAttributeFinder(), context));
} finally {
  if (debug) {
origin: fcrepo3/fcrepo

public PDPConfig getPDPConfig(List<AttributeFinderModule> attributeFinders,
               Set<PolicyFinderModule> policyFinders,
               List<ResourceFinderModule> resourceFinders) {
  AttributeFinder attr = new AttributeFinder();
  attr.setModules(attributeFinders);
  PolicyFinder policy = new PolicyFinder();
  policy.setModules(policyFinders);
  ResourceFinder rsrc = new ResourceFinder();
  rsrc.setModules(resourceFinders);
  return new PDPConfig(attr, policy, rsrc);
}

origin: org.fcrepo/fcrepo-server

try {
  response = m_pdp.evaluate(new BasicEvaluationCtx(request, m_pdpConfig.getAttributeFinder()));
} finally {
  if (debug) {
origin: fcrepo3/fcrepo

try {
  response = m_pdp.evaluate(new BasicEvaluationCtx(request, m_pdpConfig.getAttributeFinder(), context));
} finally {
  if (debug) {
origin: fcrepo3/fcrepo

try {
  response = m_pdp.evaluate(new BasicEvaluationCtx(request, m_pdpConfig.getAttributeFinder()));
} finally {
  if (debug) {
org.jboss.security.xacml.sunxacmlPDPConfig

Javadoc

This class is used as a container that holds configuration information for the PDP, which includes the AttributeFinder, PolicyFinder, and ResourceFinder that the PDP should use.

Most used methods

  • getAttributeFinder
    Returns the AttributeFinder that was configured, or null if none was configured
  • <init>
    Constructor that creates a PDPConfig from components.
  • getPolicyFinder
    Returns the PolicyFinder that was configured, or null if none was configured
  • getResourceFinder
    Returns the ResourceFinder that was configured, or null if none was configured

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now