public class ScopeMatcher extends Object implements CredentialsMatcher, CredentialsMatcher.CQL
IdCredentials and have the specified CredentialsScope(s).CredentialsMatcher.CQL| Constructor and Description |
|---|
ScopeMatcher(Collection<CredentialsScope> scopes)
Constructs a new instance.
|
ScopeMatcher(CredentialsScope... scopes)
Constructs a new instance.
|
ScopeMatcher(CredentialsScope scope)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
describe()
Describes this matcher in terms of a java-bean style query language
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
matches(Credentials item)
Evaluates the matcher for the specified credentials.
|
String |
toString() |
public ScopeMatcher(@NonNull
CredentialsScope scope)
scope - the scope to match.public ScopeMatcher(@NonNull
CredentialsScope... scopes)
scopes - the scopes to match.public ScopeMatcher(@NonNull
Collection<CredentialsScope> scopes)
scopes - the scopes to match.public boolean matches(@NonNull
Credentials item)
matches in interface CredentialsMatcheritem - the specified credentials.true if and only if the specified credentials match.public String describe()
describe in interface CredentialsMatcher.CQLnull if the matcher cannot be expressed
in CQL.Copyright © 2016–2017. All rights reserved.