public class ScopeMatcher extends Object implements CredentialsMatcher
IdCredentials and have the specified CredentialsScope(s).| 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.
|
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.Copyright © 2004-2015. All Rights Reserved.