Searched refs:requiredScopes (Results 1 - 8 of 8) sorted by relevance

/forgerock/openam-v13/openam-entitlements/src/main/java/org/forgerock/openam/entitlement/conditions/environment/
H A DOAuth2ScopeCondition.java63 private static final String ATTR_SCOPES = "requiredScopes";
70 private volatile Set<String> requiredScopes = new HashSet<String>(); field in class:OAuth2ScopeCondition
89 requiredScopes.add(scopes.getString(i));
111 debug.message("Entering OAuth2ScopeCondition.getConditionDecision(). Required scopes=" + requiredScopes
125 allowed = requestScopes.containsAll(requiredScopes);
169 for (String scope : requiredScopes) {
191 return requiredScopes;
194 public void setRequiredScopes(Set<String> requiredScopes) { argument
195 this.requiredScopes = requiredScopes;
[all...]
/forgerock/openam-v13/openam-entitlements/src/test/java/org/forgerock/openam/entitlement/conditions/environment/
H A DOAuth2ScopeConditionTest.java48 condition.setState("{\"requiredScopes\": [\"cn\", \"givenName\"]}");
58 Set<String> requiredScopes = new HashSet<String>();
59 requiredScopes.add("cn");
60 requiredScopes.add("givenName");
61 condition.setRequiredScopes(requiredScopes);
67 assertThat(state).contains("\"requiredScopes\": [", "\"cn\"", "\"givenName\"");
179 Set<String> requiredScopes = new HashSet<String>();
182 requiredScopes.add("cn");
183 requiredScopes.add("givenName");
184 condition.setRequiredScopes(requiredScopes);
[all...]
/forgerock/openam-v13/openam-uma/src/main/java/org/forgerock/openam/uma/
H A DAuthorizationRequestEndpoint.java317 Set<String> requiredScopes = new HashSet<>(requestedScopes);
322 requiredScopes.remove(requestedScope);
327 boolean isAuthorized = requiredScopes.isEmpty();
/forgerock/openam-v13/openam-uma/src/main/java/org/forgerock/openam/uma/rest/
H A DUmaPolicyServiceImpl.java214 Set<String> requiredScopes = new HashSet<>(requestedScopes);
219 requiredScopes.remove(requestedScope);
223 return requiredScopes.isEmpty();
/forgerock/openam/openam-entitlements/src/main/java/org/forgerock/openam/entitlement/conditions/environment/
H A DOAuth2ScopeCondition.java63 private static final String ATTR_SCOPES = "requiredScopes";
70 private volatile Set<String> requiredScopes = new HashSet<String>(); field in class:OAuth2ScopeCondition
89 requiredScopes.add(scopes.getString(i));
111 debug.message("Entering OAuth2ScopeCondition.getConditionDecision(). Required scopes=" + requiredScopes
125 allowed = requestScopes.containsAll(requiredScopes);
169 for (String scope : requiredScopes) {
191 return requiredScopes;
194 public void setRequiredScopes(Set<String> requiredScopes) { argument
195 this.requiredScopes = requiredScopes;
[all...]
/forgerock/openam/openam-entitlements/src/test/java/org/forgerock/openam/entitlement/conditions/environment/
H A DOAuth2ScopeConditionTest.java48 condition.setState("{\"requiredScopes\": [\"cn\", \"givenName\"]}");
58 Set<String> requiredScopes = new HashSet<String>();
59 requiredScopes.add("cn");
60 requiredScopes.add("givenName");
61 condition.setRequiredScopes(requiredScopes);
67 assertThat(state).contains("\"requiredScopes\": [", "\"cn\"", "\"givenName\"");
179 Set<String> requiredScopes = new HashSet<String>();
182 requiredScopes.add("cn");
183 requiredScopes.add("givenName");
184 condition.setRequiredScopes(requiredScopes);
[all...]
/forgerock/openam/openam-uma/src/main/java/org/forgerock/openam/uma/
H A DAuthorizationRequestEndpoint.java316 Set<String> requiredScopes = new HashSet<>(requestedScopes);
321 requiredScopes.remove(requestedScope);
326 boolean isAuthorized = requiredScopes.isEmpty();
/forgerock/openam/openam-uma/src/main/java/org/forgerock/openam/uma/rest/
H A DUmaPolicyServiceImpl.java214 Set<String> requiredScopes = new HashSet<>(requestedScopes);
219 requiredScopes.remove(requestedScope);
223 return requiredScopes.isEmpty();

Completed in 664 milliseconds