Class ScopeValidation

java.lang.Object
ca.cdr.api.security.ScopeValidation

public class ScopeValidation extends Object
  • Constructor Details

  • 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 as patient/*.read and theRequestedScope contains a narrower version such as patient/Observation.read.
    • scopesFromString

      @Nonnull public static Set<String> scopesFromString(String scopeString)