Class ScopeMatcher
java.lang.Object
com.cloudbees.plugins.credentials.matchers.ScopeMatcher
- All Implemented Interfaces:
CredentialsMatcher,Serializable
Matches credentials that are
IdCredentials and have the specified CredentialsScope(s).- Since:
- 1.5
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScopeMatcher(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:
matchesin interfaceCredentialsMatcher- Parameters:
item- the specified credentials.- Returns:
trueif and only if the specified credentials match.
-
hashCode
public int hashCode() -
equals
-
toString
-