Class BeanPropertyMatcher<T extends Serializable>
java.lang.Object
com.cloudbees.plugins.credentials.matchers.BeanPropertyMatcher<T>
- All Implemented Interfaces:
CredentialsMatcher
,CredentialsMatcher.CQL
,Serializable
public class BeanPropertyMatcher<T extends Serializable>
extends Object
implements CredentialsMatcher, CredentialsMatcher.CQL
Matches credentials that have a Java Bean property with an expected value.
- Since:
- 2.1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.CredentialsMatcher
CredentialsMatcher.CQL
-
Constructor Summary
ConstructorDescriptionBeanPropertyMatcher
(String name, T expected) Constructs an instance that matches the specified java bean property against the supplied value. -
Method Summary
-
Constructor Details
-
BeanPropertyMatcher
Constructs an instance that matches the specified java bean property against the supplied value.- Parameters:
name
- the property name.expected
- the expected value.
-
-
Method Details
-
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.
-
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.
-
hashCode
public int hashCode() -
equals
-
toString
-