Package ca.cdr.api.security
Class ScopeValidation
java.lang.Object
ca.cdr.api.security.ScopeValidation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isScopeAllowedDirectlyOrIndirectly
(Set<String> theClientAllowedScopes, String theRequestedScope) Returns true if theClientAllowedScopes contains theRequestedScope or if theClientAllowedScopes contains a scope that is more broad, such aspatient/*.read
and theRequestedScope contains a narrower version such aspatient/Observation.read
.scopesFromString
(String scopeString)
-
Constructor Details
-
ScopeValidation
public ScopeValidation()
-
-
Method Details
-
isScopeAllowedDirectlyOrIndirectly
public static boolean isScopeAllowedDirectlyOrIndirectly(Set<String> theClientAllowedScopes, String theRequestedScope) Returns true if theClientAllowedScopes contains theRequestedScope or if theClientAllowedScopes contains a scope that is more broad, such aspatient/*.read
and theRequestedScope contains a narrower version such aspatient/Observation.read
. -
scopesFromString
-