Class ScopeMatcher
java.lang.Object
com.cloudbees.plugins.credentials.matchers.ScopeMatcher
- All Implemented Interfaces:
CredentialsMatcher
,CredentialsMatcher.CQL
,Serializable
Matches credentials that are
IdCredentials
and have the specified CredentialsScope
(s).- Since:
- 1.5
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.CredentialsMatcher
CredentialsMatcher.CQL
-
Constructor Summary
ConstructorDescriptionScopeMatcher
(CredentialsScope scope) Constructs a new instance.ScopeMatcher
(CredentialsScope... scopes) Constructs a new instance.ScopeMatcher
(Collection<CredentialsScope> scopes) Constructs a new instance. -
Method Summary
-
Constructor Details
-
ScopeMatcher
Constructs a new instance.- Parameters:
scope
- the scope to match.
-
ScopeMatcher
Constructs a new instance.- Parameters:
scopes
- the scopes to match.
-
ScopeMatcher
Constructs a new instance.- Parameters:
scopes
- the scopes to match.
-
-
Method Details
-
matches
Evaluates the matcher for the specified credentials.- Specified by:
matches
in interfaceCredentialsMatcher
- Parameters:
item
- the specified credentials.- Returns:
true
if and only if the specified credentials match.
-
describe
Describes this matcher in terms of a java-bean style query language- Specified by:
describe
in interfaceCredentialsMatcher.CQL
- Returns:
- the description of the credentials matcher query or
null
if the matcher cannot be expressed in CQL.
-
hashCode
public int hashCode() -
equals
-
toString
-