@ProviderType
public interface ScopeMatcher
com.liferay.oauth2.provider.scope.spi.prefixhandler.PrefixHandler
and com.liferay.oauth2.provider.scope.spi.scopemapper.ScopeMapper
to tailor the matching strategy to the framework configuration.| Modifier and Type | Field and Description |
|---|---|
static ScopeMatcher |
NONE |
| Modifier and Type | Method and Description |
|---|---|
default java.util.Collection<java.lang.String> |
filter(java.util.Collection<java.lang.String> names)
Applies the matcher to a collection of scope.
|
boolean |
match(java.lang.String name)
Specifies if a given scope matches according to the
ScopeMatcher. |
static final ScopeMatcher NONE
default java.util.Collection<java.lang.String> filter(java.util.Collection<java.lang.String> names)
names - the collection of scope to match.boolean match(java.lang.String name)
ScopeMatcher.name - true if the input scope is a match for the ScopeMatcher, false otherwise.