summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.5.1/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationServicePolicyProvider.java
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-08-13 05:03:43 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-08-13 05:03:43 +0000
commit7c449ba859ffb8826feedf292281983b16f0a598 (patch)
tree7d0b7bfe518d0df99eda7f3429b215dc83f298f4 /branches/sca-java-1.5.1/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationServicePolicyProvider.java
parent6836d08176b0a62f7443ac098f1345ddd74f4ade (diff)
Splitting policy security code specific to geronimo hosting environment to it's own module
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@803776 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--branches/sca-java-1.5.1/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationServicePolicyProvider.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/branches/sca-java-1.5.1/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationServicePolicyProvider.java b/branches/sca-java-1.5.1/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationServicePolicyProvider.java
index 32fce4eb81..5a8b7c7d85 100644
--- a/branches/sca-java-1.5.1/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationServicePolicyProvider.java
+++ b/branches/sca-java-1.5.1/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationServicePolicyProvider.java
@@ -30,6 +30,7 @@ import org.apache.tuscany.sca.invocation.Interceptor;
import org.apache.tuscany.sca.invocation.Phase;
import org.apache.tuscany.sca.policy.PolicySet;
import org.apache.tuscany.sca.policy.authorization.AuthorizationPolicy;
+import org.apache.tuscany.sca.policy.security.http.extensibility.LDAPSecurityHandler;
import org.apache.tuscany.sca.provider.PolicyProvider;
import org.apache.tuscany.sca.runtime.RuntimeComponent;
import org.apache.tuscany.sca.runtime.RuntimeComponentService;
@@ -43,14 +44,16 @@ public class LDAPRealmAuthenticationServicePolicyProvider implements PolicyProvi
private RuntimeComponent component;
private RuntimeComponentService service;
private Binding binding;
+ LDAPSecurityHandler securityHandler;
private List<Operation> operations = new ArrayList<Operation>();
- public LDAPRealmAuthenticationServicePolicyProvider(RuntimeComponent component, RuntimeComponentService service, Binding binding) {
+ public LDAPRealmAuthenticationServicePolicyProvider(RuntimeComponent component, RuntimeComponentService service, Binding binding, LDAPSecurityHandler securityHandler) {
super();
this.component = component;
this.service = service;
this.binding = binding;
+ this.securityHandler = securityHandler;
this.operations.addAll(service.getInterfaceContract().getInterface().getOperations());
}
@@ -71,7 +74,7 @@ public class LDAPRealmAuthenticationServicePolicyProvider implements PolicyProvi
if (authenticationPolicies == null || authenticationPolicies.isEmpty()) {
return null;
} else {
- return new LDAPRealmAuthenticationInterceptor(authenticationPolicies, authorizationPolicies);
+ return new LDAPRealmAuthenticationInterceptor(securityHandler, authenticationPolicies, authorizationPolicies);
}
}