Class ConstantMatcher
java.lang.Object
com.cloudbees.plugins.credentials.matchers.ConstantMatcher
- All Implemented Interfaces:
CredentialsMatcher,Serializable
Matches credentials based on a constant result.
- Since:
- 1.5
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ConstantMatcher
public ConstantMatcher(boolean match) Constructs a new instance.- Parameters:
match- whether to match or not.
-
-
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
-