Tabnine Logo
AxisBinding.getPolicySubject
Code IndexAdd Tabnine to your IDE (free)

How to use
getPolicySubject
method
in
org.apache.axis2.description.AxisBinding

Best Java code snippets using org.apache.axis2.description.AxisBinding.getPolicySubject (Showing top 20 results out of 315)

origin: wso2/carbon-identity-framework

public void removeSecurityPolicyFromAllBindings(AxisService axisService, String uuid)
    throws ServerException {
  if (log.isDebugEnabled()) {
    log.debug("Removing  security policy from all bindings.");
  }
  Map endPointMap = axisService.getEndpoints();
  for (Object o : endPointMap.entrySet()) {
    Map.Entry entry = (Map.Entry) o;
    AxisEndpoint point = (AxisEndpoint) entry.getValue();
    AxisBinding binding = point.getBinding();
    if (binding.getPolicySubject().getAttachedPolicyComponent(uuid) != null) {
      binding.getPolicySubject().detachPolicyComponent(uuid);
    }
  }
}
origin: org.wso2.carbon.identity/org.wso2.carbon.security.mgt

public void removeSecurityPolicyFromAllBindings(AxisService axisService, String uuid)
    throws ServerException {
  if (log.isDebugEnabled()) {
    log.debug("Removing  security policy from all bindings.");
  }
  Map endPointMap = axisService.getEndpoints();
  for (Object o : endPointMap.entrySet()) {
    Map.Entry entry = (Map.Entry) o;
    AxisEndpoint point = (AxisEndpoint) entry.getValue();
    AxisBinding binding = point.getBinding();
    if (binding.getPolicySubject().getAttachedPolicyComponent(uuid) != null) {
      binding.getPolicySubject().detachPolicyComponent(uuid);
    }
  }
}
origin: org.wso2.carbon.identity.framework/org.wso2.carbon.security.mgt

public void removeSecurityPolicyFromAllBindings(AxisService axisService, String uuid)
    throws ServerException {
  if (log.isDebugEnabled()) {
    log.debug("Removing  security policy from all bindings.");
  }
  Map endPointMap = axisService.getEndpoints();
  for (Object o : endPointMap.entrySet()) {
    Map.Entry entry = (Map.Entry) o;
    AxisEndpoint point = (AxisEndpoint) entry.getValue();
    AxisBinding binding = point.getBinding();
    if (binding.getPolicySubject().getAttachedPolicyComponent(uuid) != null) {
      binding.getPolicySubject().detachPolicyComponent(uuid);
    }
  }
}
origin: org.apache.axis2/axis2-kernel

public Policy getEffectivePolicy() {
  Collection<PolicyComponent> policyList = new ArrayList<PolicyComponent>();
  policyList.addAll(getPolicySubject().getAttachedPolicyComponents());
   // AxisEndpoint
  AxisEndpoint axisEndpoint = getAxisEndpoint();
  
  if (axisEndpoint != null) {
    policyList.addAll(axisEndpoint.getPolicySubject().getAttachedPolicyComponents());
  }
  
  AxisService service = null;
  
  if (axisEndpoint != null) {
    service = axisEndpoint.getAxisService();
  }
  
  if (service != null) {
    PolicySubject servicePolicySubject = service.getPolicySubject();
    if (servicePolicySubject != null) {
      policyList.addAll(servicePolicySubject.getAttachedPolicyComponents());
    }
  }
  
  return PolicyUtil.getMergedPolicy(policyList,  this);
}
origin: org.wso2.carbon.identity/org.wso2.carbon.security.mgt

public void addPolicyToAllBindings(AxisService axisService, Policy policy)
    throws ServerException {
  try {
    if (policy.getId() == null) {
      // Generate an ID
      policy.setId(UUIDGenerator.getUUID());
    }
    Map endPointMap = axisService.getEndpoints();
    for (Object o : endPointMap.entrySet()) {
      Map.Entry entry = (Map.Entry) o;
      AxisEndpoint point = (AxisEndpoint) entry.getValue();
      AxisBinding binding = point.getBinding();
      String bindingName = binding.getName().getLocalPart();
      //only UTOverTransport is allowed for HTTP
      if (bindingName.endsWith("HttpBinding") &&
          (!policy.getAttributes().containsValue("UTOverTransport"))) {
        continue;
      }
      binding.getPolicySubject().attachPolicy(policy);
      // Add the new policy to the registry
    }
  } catch (Exception e) {
    log.error("Error in adding security policy to all bindings", e);
    throw new ServerException("addPoliciesToService", e);
  }
}
origin: org.wso2.carbon.identity.framework/org.wso2.carbon.security.mgt

public void addPolicyToAllBindings(AxisService axisService, Policy policy)
    throws ServerException {
  try {
    if (policy.getId() == null) {
      // Generate an ID
      policy.setId(UUIDGenerator.getUUID());
    }
    Map endPointMap = axisService.getEndpoints();
    for (Object o : endPointMap.entrySet()) {
      Map.Entry entry = (Map.Entry) o;
      AxisEndpoint point = (AxisEndpoint) entry.getValue();
      AxisBinding binding = point.getBinding();
      String bindingName = binding.getName().getLocalPart();
      //only UTOverTransport is allowed for HTTP
      if (bindingName.endsWith("HttpBinding") &&
          (!policy.getAttributes().containsValue("UTOverTransport"))) {
        continue;
      }
      binding.getPolicySubject().attachPolicy(policy);
      // Add the new policy to the registry
    }
  } catch (Exception e) {
    log.error("Error in adding security policy to all bindings", e);
    throw new ServerException("addPoliciesToService", e);
  }
}
origin: apache/axis2-java

public Policy getEffectivePolicy() {
  Collection<PolicyComponent> policyList = new ArrayList<PolicyComponent>();
  policyList.addAll(getPolicySubject().getAttachedPolicyComponents());
   // AxisEndpoint
  AxisEndpoint axisEndpoint = getAxisEndpoint();
  
  if (axisEndpoint != null) {
    policyList.addAll(axisEndpoint.getPolicySubject().getAttachedPolicyComponents());
  }
  
  AxisService service = null;
  
  if (axisEndpoint != null) {
    service = axisEndpoint.getAxisService();
  }
  
  if (service != null) {
    PolicySubject servicePolicySubject = service.getPolicySubject();
    if (servicePolicySubject != null) {
      policyList.addAll(servicePolicySubject.getAttachedPolicyComponents());
    }
  }
  
  return PolicyUtil.getMergedPolicy(policyList,  this);
}
origin: apache/axis2-java

public Policy getEffectivePolicy() {
  
  Collection<PolicyComponent> policyList = new ArrayList<PolicyComponent>();
  policyList.addAll(getPolicySubject().getAttachedPolicyComponents());
  
  // AxisBinding
  AxisBinding axisBinding = getAxisBinding();
  if (axisBinding != null) {
    policyList.addAll(axisBinding.getPolicySubject().getAttachedPolicyComponents());
  }
  // AxisEndpoint
  AxisEndpoint axisEndpoint = null;
  if (axisBinding != null) {
    axisEndpoint = axisBinding.getAxisEndpoint();
  }
  if (axisEndpoint != null) {
    policyList.addAll(axisEndpoint.getPolicySubject().getAttachedPolicyComponents());
  }
  
  if (axisOperation != null) {
    policyList.addAll(axisOperation.getPolicySubject().getAttachedPolicyComponents());
  }
  return PolicyUtil.getMergedPolicy(policyList, this);
}
origin: wso2/carbon-identity-framework

public void addPolicyToAllBindings(AxisService axisService, Policy policy)
    throws ServerException {
  try {
    if (policy.getId() == null) {
      // Generate an ID
      policy.setId(UUIDGenerator.getUUID());
    }
    Map endPointMap = axisService.getEndpoints();
    for (Object o : endPointMap.entrySet()) {
      Map.Entry entry = (Map.Entry) o;
      AxisEndpoint point = (AxisEndpoint) entry.getValue();
      AxisBinding binding = point.getBinding();
      String bindingName = binding.getName().getLocalPart();
      //only UTOverTransport is allowed for HTTP
      if (bindingName.endsWith("HttpBinding") &&
          (!policy.getAttributes().containsValue("UTOverTransport"))) {
        continue;
      }
      binding.getPolicySubject().attachPolicy(policy);
      // Add the new policy to the registry
    }
  } catch (Exception e) {
    log.error("Error in adding security policy to all bindings", e);
    throw new ServerException("addPoliciesToService", e);
  }
}
origin: org.apache.axis2/axis2-kernel

public Policy getEffectivePolicy() {
  
  Collection<PolicyComponent> policyList = new ArrayList<PolicyComponent>();
  policyList.addAll(getPolicySubject().getAttachedPolicyComponents());
  
  // AxisBinding
  AxisBinding axisBinding = getAxisBinding();
  if (axisBinding != null) {
    policyList.addAll(axisBinding.getPolicySubject().getAttachedPolicyComponents());
  }
  // AxisEndpoint
  AxisEndpoint axisEndpoint = null;
  if (axisBinding != null) {
    axisEndpoint = axisBinding.getAxisEndpoint();
  }
  if (axisEndpoint != null) {
    policyList.addAll(axisEndpoint.getPolicySubject().getAttachedPolicyComponents());
  }
  
  if (axisOperation != null) {
    policyList.addAll(axisOperation.getPolicySubject().getAttachedPolicyComponents());
  }
  return PolicyUtil.getMergedPolicy(policyList, this);
}
origin: org.wso2.carbon.identity.framework/org.wso2.carbon.security.mgt

  continue;
binding.getPolicySubject().attachPolicy(policy);
origin: wso2/carbon-identity-framework

  continue;
binding.getPolicySubject().attachPolicy(policy);
origin: org.apache.axis2/axis2-kernel

int key = identifiers.length;
if (key == 1) {
  axisBinding.getPolicySubject().attachPolicyComponents(
      policyComponents);
} else if (key == 2 || key == 3) {
origin: apache/axis2-java

int key = identifiers.length;
if (key == 1) {
  axisBinding.getPolicySubject().attachPolicyComponents(
      policyComponents);
} else if (key == 2 || key == 3) {
origin: org.wso2.carbon.identity/org.wso2.carbon.security.mgt

  continue;
binding.getPolicySubject().attachPolicy(policy);
origin: org.wso2.carbon.identity.framework/org.wso2.carbon.security.mgt

AxisEndpoint point = (AxisEndpoint) entry.getValue();
AxisBinding binding = point.getBinding();
java.util.Collection policies = binding.getPolicySubject()
    .getAttachedPolicyComponents();
Iterator policyComponents = policies.iterator();
origin: apache/axis2-java

    : axisBindingOperation.getAxisBinding();
if (axisBinding != null) {
  policyList.addAll(axisBinding.getPolicySubject()
      .getAttachedPolicyComponents());
origin: org.apache.axis2/axis2-kernel

    : axisBindingOperation.getAxisBinding();
if (axisBinding != null) {
  policyList.addAll(axisBinding.getPolicySubject()
      .getAttachedPolicyComponents());
origin: org.apache.axis2/axis2-kernel

    : axisBindingOperation.getAxisBinding();
if (axisBinding != null
    && axisBinding.getPolicySubject().getLastUpdatedTime().after(
    lastPolicyCalculatedTime)) {
  return true;
origin: apache/axis2-java

    : axisBindingOperation.getAxisBinding();
if (axisBinding != null
    && axisBinding.getPolicySubject().getLastUpdatedTime().after(
    lastPolicyCalculatedTime)) {
  return true;
org.apache.axis2.descriptionAxisBindinggetPolicySubject

Popular methods of AxisBinding

  • getName
  • getChild
  • getProperty
  • <init>
  • addChild
  • getChildren
  • getType
  • setName
  • setProperty
  • setType
  • addFault
  • getAxisEndpoint
  • addFault,
  • getAxisEndpoint,
  • getEffectivePolicy,
  • getFault,
  • getParameterValue,
  • setParent,
  • toWSDL20

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JButton (javax.swing)
  • Top PhpStorm plugins
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