Searched defs:policies (Results 1 - 25 of 27) sorted by relevance

12

/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/policy/
H A DProtectedResource.java36 * Class that encapsulates a resource and policies protecting the resource
46 private Set policies; field in class:ProtectedResource
50 * the given resource name and protecting policies
52 * @param policies set of policies that protect
55 ProtectedResource(String resourceName, Set policies) { argument
57 this.policies = policies;
77 * Sets policies that protect the resource name
78 * @param policies se
81 setPolicies(Set policies) argument
[all...]
H A DPolicyCache.java56 private static final String POLICIES_COMPONENT = "/policies/";
64 private Map policies = Collections.synchronizedMap(new HashMap()); field in class:PolicyCache
222 + policies.keySet());
224 if ( policies.containsKey(cacheKey) ) {
225 policy = (Policy) policies.get(cacheKey);
275 policies.put(cacheKey, policy);
382 oldPolicy= (Policy) policies.get(cacheKey);
383 policies.put(cacheKey, null);
385 oldPolicy= (Policy) policies.get(cacheKey);
514 //ou=policy1,ou=policies
[all...]
/forgerock/openam-v13/openam-uma/src/main/java/org/forgerock/openam/uma/
H A DPolicySearch.java32 private final Collection<UmaPolicy> policies; field in class:PolicySearch
37 * @param policies
39 public PolicySearch(Collection<UmaPolicy> policies) { argument
40 this.policies = policies;
48 this.policies = new HashSet<UmaPolicy>();
62 for (UmaPolicy policy : policies) {
68 for (UmaPolicy policy : policies) {
81 this.policies.add(policy);
90 return policies;
[all...]
H A DUmaPolicy.java40 * Represents an UMA policy with operations to convert to and from underlying backend policies and JSON format.
125 * Converts underlying backend policies into an {@code UmaPolicy}.
128 * @param policies The collection of underlying backend policies.
130 * @throws BadRequestException If the underlying policies do not underpin a valid UMA policy.
132 public static UmaPolicy fromUnderlyingPolicies(ResourceSetDescription resourceSet, Collection<ResourceResponse> policies) argument
137 for (ResourceResponse policy : policies) {
215 * Converts the {@code UmaPolicy} into its underlying backend policies in JSON format.
217 * @return The set of underlying backend policies that represent this UMA policy.
/forgerock/openam/openam-core/src/main/java/com/sun/identity/policy/
H A DProtectedResource.java36 * Class that encapsulates a resource and policies protecting the resource
46 private Set policies; field in class:ProtectedResource
50 * the given resource name and protecting policies
52 * @param policies set of policies that protect
55 ProtectedResource(String resourceName, Set policies) { argument
57 this.policies = policies;
77 * Sets policies that protect the resource name
78 * @param policies se
81 setPolicies(Set policies) argument
[all...]
H A DPolicyCache.java56 private static final String POLICIES_COMPONENT = "/policies/";
64 private Map policies = Collections.synchronizedMap(new HashMap()); field in class:PolicyCache
213 + policies.keySet());
215 if ( policies.containsKey(cacheKey) ) {
216 policy = (Policy) policies.get(cacheKey);
266 policies.put(cacheKey, policy);
373 oldPolicy= (Policy) policies.get(cacheKey);
374 policies.put(cacheKey, null);
376 oldPolicy= (Policy) policies.get(cacheKey);
505 //ou=policy1,ou=policies
[all...]
/forgerock/openam/openam-uma/src/main/java/org/forgerock/openam/uma/
H A DPolicySearch.java32 private final Collection<UmaPolicy> policies; field in class:PolicySearch
37 * @param policies
39 public PolicySearch(Collection<UmaPolicy> policies) { argument
40 this.policies = policies;
48 this.policies = new HashSet<UmaPolicy>();
62 for (UmaPolicy policy : policies) {
68 for (UmaPolicy policy : policies) {
81 this.policies.add(policy);
90 return policies;
[all...]
H A DUmaPolicy.java42 * Represents an UMA policy with operations to convert to and from underlying backend policies and JSON format.
127 * Converts underlying backend policies into an {@code UmaPolicy}.
130 * @param policies The collection of underlying backend policies.
132 * @throws BadRequestException If the underlying policies do not underpin a valid UMA policy.
134 public static UmaPolicy fromUnderlyingPolicies(ResourceSetDescription resourceSet, Collection<ResourceResponse> policies) argument
139 for (ResourceResponse policy : policies) {
217 * Converts the {@code UmaPolicy} into its underlying backend policies in JSON format.
219 * @return The set of underlying backend policies that represent this UMA policy.
/forgerock/openam-v13/openam-uma/src/main/java/org/forgerock/openam/uma/rest/
H A DPolicyResourceDelegate.java47 * Delegate that provide methods to create, update, delete and query sets of underlying backend policies.
67 * <p>Creates the underlying backend policies.</p>
69 * <p>NOTE: if the creation of the underlying policies fails, any successfully
70 * created underlying policies will be attempted to be deleted but if the deletion
71 * fails, then the underlying policies may be in an inconsistent state.</p>
74 * @param policies The underlying policies to create.
75 * @return A promise containing the list of created underlying policies or a {@code ResourceException} if
79 Set<JsonValue> policies) {
83 for (JsonValue policy : policies) {
78 createPolicies(Context context, Set<JsonValue> policies) argument
114 updatePolicies(Context context, Set<JsonValue> policies) argument
[all...]
H A DResourceSetService.java105 * @param augmentWithPolicy {@code true} to pull in UMA policies into the resource set.
157 * Filters the policies based on the provided query.
203 * @param augmentWithPolicies {@code true} to pull in UMA policies into the resource set.
293 * Revokes all UMA policies for a user's resource sets.
361 Collection<UmaPolicy> policies, boolean augmentWithPolicies, String resourceOwnerId)
371 for (UmaPolicy policy : policies) {
359 combine(Context context, ResourceSetWithPolicyQuery resourceSetWithPolicyQuery, Collection<ResourceSetDescription> resourceSets, Collection<UmaPolicy> policies, boolean augmentWithPolicies, String resourceOwnerId) argument
/forgerock/openidm-v4/openidm-core/src/test/java/org/forgerock/openidm/sync/impl/
H A DPolicyTest.java54 private Map<String, List<Policy>> policies = new HashMap<String, List<Policy>>(); field in class:PolicyTest
82 policies = new HashMap<String, List<Policy>>();
90 assertEquals(policies.size(), 8);
98 assertEquals((policies.get(Situation.ABSENT.toString())).size(), 2);
123 assertEquals(policies.size(), 8);
129 assertEquals((policies.get(Situation.ABSENT.toString())).size(), 2);
145 for (JsonValue jv : mappingConfig.get("policies").expect(List.class)) {
147 if (policies.containsKey(situation)) {
148 List<Policy> policy = policies.get(situation);
153 policies
[all...]
/forgerock/openam/openam-uma/src/main/java/org/forgerock/openam/uma/rest/
H A DPolicyResourceDelegate.java47 * Delegate that provide methods to create, update, delete and query sets of underlying backend policies.
67 * <p>Creates the underlying backend policies.</p>
69 * <p>NOTE: if the creation of the underlying policies fails, any successfully
70 * created underlying policies will be attempted to be deleted but if the deletion
71 * fails, then the underlying policies may be in an inconsistent state.</p>
74 * @param policies The underlying policies to create.
75 * @return A promise containing the list of created underlying policies or a {@code ResourceException} if
79 Set<JsonValue> policies) {
83 for (JsonValue policy : policies) {
78 createPolicies(Context context, Set<JsonValue> policies) argument
114 updatePolicies(Context context, Set<JsonValue> policies) argument
[all...]
H A DResourceSetService.java105 * @param augmentWithPolicy {@code true} to pull in UMA policies into the resource set.
157 * Filters the policies based on the provided query.
203 * @param augmentWithPolicies {@code true} to pull in UMA policies into the resource set.
293 * Revokes all UMA policies for a user's resource sets.
361 Collection<UmaPolicy> policies, boolean augmentWithPolicies, String resourceOwnerId)
371 for (UmaPolicy policy : policies) {
359 combine(Context context, ResourceSetWithPolicyQuery resourceSetWithPolicyQuery, Collection<ResourceSetDescription> resourceSets, Collection<UmaPolicy> policies, boolean augmentWithPolicies, String resourceOwnerId) argument
/forgerock/openam-v13/openam-upgrade/src/test/java/org/forgerock/openam/upgrade/steps/policy/
H A DUpgradeResourceTypeStepTest.java44 private final Set<String> policies = new HashSet<String>(); field in class:UpgradeResourceTypeStepTest
75 return policies;
120 policies.clear();
146 policies.add("PolicyWithoutResourceType");
173 policies.add("PolicyWithoutResourceTypeOne");
174 policies.add("PolicyWithoutResourceTypeTwo");
175 policies.add("PolicyWithoutResourceTypeThree");
182 assertEquals(shortReport, "New entitlement resource types (1)Modified applications (1)Modified policies (3)");
190 policies.add("PolicyWithoutResourceTypeOne");
191 policies
[all...]
/forgerock/openam/openam-upgrade/src/test/java/org/forgerock/openam/upgrade/steps/policy/
H A DUpgradeResourceTypeStepTest.java46 private final Set<String> policies = new HashSet<String>(); field in class:UpgradeResourceTypeStepTest
79 return policies;
124 policies.clear();
150 policies.add("PolicyWithoutResourceType");
177 policies.add("PolicyWithoutResourceTypeOne");
178 policies.add("PolicyWithoutResourceTypeTwo");
179 policies.add("PolicyWithoutResourceTypeThree");
186 assertEquals(shortReport, "New entitlement resource types (1)Modified applications (1)Modified policies (3)");
194 policies.add("PolicyWithoutResourceTypeOne");
195 policies
[all...]
/forgerock/openam-v13/openam-uma/src/test/java/org/forgerock/openam/uma/rest/
H A DPolicyGraphTest.java75 * the policies, and where updates are required, the graph will be making
76 * the policies match this graph.
126 List<ResourceResponse> policies = VALID_POLICIES;
127 PolicyGraph graph = makePolicyGraph(policies);
142 List<ResourceResponse> policies = excludePolicies(DAVE, ED);
143 policies.add(makePolicy(DAVE, ED, true, DELETE));
144 policies.add(makePolicy(DAVE, ED, false, VIEW));
146 PolicyGraph graph = makePolicyGraph(policies);
163 List<ResourceResponse> policies = excludePolicies(DAVE, ED);
164 policies
281 makePolicyGraph(List<ResourceResponse> policies) argument
[all...]
H A DUmaPolicyServiceImplTest.java392 List<ResourceResponse> policies = new ArrayList<>();
395 policies.add(readPolicy1);
396 policies.add(readPolicy2);
397 UmaPolicy expectedUmaPolicy = UmaPolicy.fromUnderlyingPolicies(resourceSet, policies);
400 newResultPromise(Pair.of(queryResult, policies));
648 private void mockBackendQuery(Context context, JsonValue... policies) { argument
651 for (JsonValue policy : policies) {
/forgerock/openam/openam-uma/src/test/java/org/forgerock/openam/uma/rest/
H A DPolicyGraphTest.java75 * the policies, and where updates are required, the graph will be making
76 * the policies match this graph.
126 List<ResourceResponse> policies = VALID_POLICIES;
127 PolicyGraph graph = makePolicyGraph(policies);
142 List<ResourceResponse> policies = excludePolicies(DAVE, ED);
143 policies.add(makePolicy(DAVE, ED, true, DELETE));
144 policies.add(makePolicy(DAVE, ED, false, VIEW));
146 PolicyGraph graph = makePolicyGraph(policies);
163 List<ResourceResponse> policies = excludePolicies(DAVE, ED);
164 policies
281 makePolicyGraph(List<ResourceResponse> policies) argument
[all...]
H A DUmaPolicyServiceImplTest.java405 List<ResourceResponse> policies = new ArrayList<>();
408 policies.add(readPolicy1);
409 policies.add(readPolicy2);
410 UmaPolicy expectedUmaPolicy = UmaPolicy.fromUnderlyingPolicies(resourceSet, policies);
413 newResultPromise(Pair.of(queryResult, policies));
661 private void mockBackendQuery(Context context, JsonValue... policies) { argument
664 for (JsonValue policy : policies) {
/forgerock/openam-v13/openam-entitlements/src/main/java/com/sun/identity/entitlement/xacml3/
H A DXACMLPrivilegeUtils.java747 Set<Policy> policies = getPoliciesFromPolicySet(policySet);
748 if (policies != null) {
749 for (Policy policy : policies) {
860 Set<Policy> policies = new HashSet<Policy>();
863 policies.add(policy);
865 PolicySet policySet = policiesToPolicySetInternal(realm, policies);
885 // policySet could contain policies for different applications
895 private static PolicySet policiesToPolicySetInternal(String realm, Set<Policy> policies) argument
911 // policySet could contain policies for different applications
923 if (policies !
[all...]
/forgerock/opendj-b2.6/src/server/org/opends/server/core/networkgroups/
H A DNetworkGroup.java85 * criteria, a set of policies and a set of workflow nodes. A client
88 * network group, it has to comply with all the network group policies.
179 * Configuration change listener for user network group QOS policies.
223 QOSPolicy policy = policies.remove(configuration.dn());
500 // Initialize the network group policies.
805 // All network group policies mapping factory class name to policy.
806 private final Map<DN, QOSPolicy> policies = field in class:NetworkGroup
1098 // Clean up policies.
1099 for (QOSPolicy policy : policies.values())
1107 policies
[all...]
/forgerock/opendj2/src/server/org/opends/server/core/networkgroups/
H A DNetworkGroup.java84 * criteria, a set of policies and a set of workflow nodes. A client
87 * network group, it has to comply with all the network group policies.
178 * Configuration change listener for user network group QOS policies.
222 QOSPolicy policy = policies.remove(configuration.dn());
499 // Initialize the network group policies.
804 // All network group policies mapping factory class name to policy.
805 private final Map<DN, QOSPolicy> policies = field in class:NetworkGroup
1097 // Clean up policies.
1098 for (QOSPolicy policy : policies.values())
1106 policies
[all...]
/forgerock/opendj2.6.2/src/server/org/opends/server/core/networkgroups/
H A DNetworkGroup.java85 * criteria, a set of policies and a set of workflow nodes. A client
88 * network group, it has to comply with all the network group policies.
179 * Configuration change listener for user network group QOS policies.
223 QOSPolicy policy = policies.remove(configuration.dn());
500 // Initialize the network group policies.
805 // All network group policies mapping factory class name to policy.
806 private final Map<DN, QOSPolicy> policies = field in class:NetworkGroup
1098 // Clean up policies.
1099 for (QOSPolicy policy : policies.values())
1107 policies
[all...]
/forgerock/opendj2-jel-hg/src/server/org/opends/server/core/networkgroups/
H A DNetworkGroup.java85 * criteria, a set of policies and a set of workflow nodes. A client
88 * network group, it has to comply with all the network group policies.
179 * Configuration change listener for user network group QOS policies.
223 QOSPolicy policy = policies.remove(configuration.dn());
500 // Initialize the network group policies.
805 // All network group policies mapping factory class name to policy.
806 private final Map<DN, QOSPolicy> policies = field in class:NetworkGroup
1098 // Clean up policies.
1099 for (QOSPolicy policy : policies.values())
1107 policies
[all...]
/forgerock/opendj2-hg/src/server/org/opends/server/core/networkgroups/
H A DNetworkGroup.java84 * criteria, a set of policies and a set of workflow nodes. A client
87 * network group, it has to comply with all the network group policies.
178 * Configuration change listener for user network group QOS policies.
222 QOSPolicy policy = policies.remove(configuration.dn());
499 // Initialize the network group policies.
804 // All network group policies mapping factory class name to policy.
805 private final Map<DN, QOSPolicy> policies = field in class:NetworkGroup
1097 // Clean up policies.
1098 for (QOSPolicy policy : policies.values())
1106 policies
[all...]

Completed in 143 milliseconds

12