diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany')
2 files changed, 4 insertions, 4 deletions
diff --git a/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityImplementationPolicyProvider.java b/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityImplementationPolicyProvider.java index ebbc2ba5ff..04d7152a49 100644 --- a/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityImplementationPolicyProvider.java +++ b/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/identity/SecurityIdentityImplementationPolicyProvider.java @@ -36,7 +36,7 @@ public class SecurityIdentityImplementationPolicyProvider extends BasePolicyProv private Implementation implementation; public SecurityIdentityImplementationPolicyProvider(RuntimeComponent component) { - super(SecurityIdentityPolicy.class, component); + super(SecurityIdentityPolicy.class, component.getImplementation()); this.component = component; this.implementation = component.getImplementation(); } @@ -61,7 +61,7 @@ public class SecurityIdentityImplementationPolicyProvider extends BasePolicyProv } */ - List<PolicySet> policySets = component.getPolicySets(); + List<PolicySet> policySets = implementation.getPolicySets(); for (PolicySet ps : policySets) { for (Object p : ps.getPolicies()) { if (SecurityIdentityPolicy.class.isInstance(p)) { diff --git a/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationImplementationPolicyProvider.java b/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationImplementationPolicyProvider.java index 6425ae7fca..20a064574d 100644 --- a/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationImplementationPolicyProvider.java +++ b/sca-java-2.x/trunk/modules/policy-security/src/main/java/org/apache/tuscany/sca/policy/security/jaas/JaasAuthenticationImplementationPolicyProvider.java @@ -38,7 +38,7 @@ public class JaasAuthenticationImplementationPolicyProvider extends BasePolicyPr private Implementation implementation; public JaasAuthenticationImplementationPolicyProvider(RuntimeComponent component) { - super(JaasAuthenticationPolicy.class, component); + super(JaasAuthenticationPolicy.class, component.getImplementation()); this.component = component; this.implementation = component.getImplementation(); } @@ -63,7 +63,7 @@ public class JaasAuthenticationImplementationPolicyProvider extends BasePolicyPr } */ - List<PolicySet> policySets = component.getPolicySets(); + List<PolicySet> policySets = implementation.getPolicySets(); for (PolicySet ps : policySets) { for (Object p : ps.getPolicies()) { if (JaasAuthenticationPolicy.class.isInstance(p)) { |