Class ScopeValidator.ScopesConfig

    • Method Detail

      • create

        public static ScopeValidator.ScopesConfig create​(String... scopes)
        Create an instance from an array of scopes.
        Parameters:
        scopes - scopes required
        Returns:
        configuration based on this list of scopes
      • create

        public static ScopeValidator.ScopesConfig create​(Config config)
        Create an instance from configuration (of endpoint).
        Parameters:
        config - config located on the key of this validator
        Returns:
        configuration based on the config
      • requiredScopes

        public List<String> requiredScopes()
        Which scopes are required.
        Returns:
        list of scopes in order of definition