Uses of Interface
com.cloudbees.plugins.credentials.CredentialsMatcher
Packages that use CredentialsMatcher
Package
Description
-
Uses of CredentialsMatcher in com.cloudbees.plugins.credentials
Subinterfaces of CredentialsMatcher in com.cloudbees.plugins.credentialsModifier and TypeInterfaceDescriptionstatic interfaceA mix-in interface to allow describing a credentials matcher.Methods in com.cloudbees.plugins.credentials that return CredentialsMatcherModifier and TypeMethodDescriptionstatic CredentialsMatcherCredentialsMatchers.allOf(CredentialsMatcher... matchers) Creates a matcher that matches when all of the supplied matchers match.static CredentialsMatcherCredentialsMatchers.always()Creates a matcher that always matches.static CredentialsMatcherCredentialsMatchers.anyOf(CredentialsMatcher... matchers) Creates a matcher that matches when any of the supplied matchers match.static CredentialsMatcherCredentialsMatchers.both(CredentialsMatcher matcher1, CredentialsMatcher matcher2) Creates a matcher that matches when both of the supplied matchers match.static CredentialsMatcherCredentialsMatchers.either(CredentialsMatcher matcher1, CredentialsMatcher matcher2) Creates a matcher that matches when either of the supplied matchers match.static CredentialsMatcherCredentialsMatchers.instanceOf(Class clazz) Creates a matcher that matches credentials of the specified type.static CredentialsMatcherCredentialsMatchers.never()Creates a matcher that never matches.static CredentialsMatcherCredentialsMatchers.noneOf(CredentialsMatcher... matchers) Creates a matcher that matches when none of the supplied matchers match.static CredentialsMatcherCredentialsMatchers.not(CredentialsMatcher matcher) Creates a matcher that inverts the supplied matcher.static CredentialsMatcherAttempts to parse a Credentials Query Language expression and construct the corresponding matcher.static CredentialsMatcherCreates a matcher that matchesIdCredentialswith the suppliedIdCredentials.getId()static <T extends Serializable>
CredentialsMatcherCredentialsMatchers.withProperty(String name, T expected) Creates a matcher that matches a named Java Bean property against the supplied expected value.static CredentialsMatcherCredentialsMatchers.withScope(CredentialsScope scope) Creates a matcher that matchesCredentialswith the suppliedCredentialsScope.static CredentialsMatcherCredentialsMatchers.withScopes(CredentialsScope... scopes) Creates a matcher that matchesCredentialswith the suppliedCredentialsScope.static CredentialsMatcherCredentialsMatchers.withScopes(Collection<CredentialsScope> scopes) Creates a matcher that matchesCredentialswith the suppliedCredentialsScope.static CredentialsMatcherCredentialsMatchers.withUsername(String username) Creates a matcher that matchesUsernameCredentialswith the suppliedUsernameCredentials.getUsername()Methods in com.cloudbees.plugins.credentials with parameters of type CredentialsMatcherModifier and TypeMethodDescriptionstatic CredentialsMatcherCredentialsMatchers.allOf(CredentialsMatcher... matchers) Creates a matcher that matches when all of the supplied matchers match.static CredentialsMatcherCredentialsMatchers.anyOf(CredentialsMatcher... matchers) Creates a matcher that matches when any of the supplied matchers match.static CredentialsMatcherCredentialsMatchers.both(CredentialsMatcher matcher1, CredentialsMatcher matcher2) Creates a matcher that matches when both of the supplied matchers match.static StringCredentialsMatchers.describe(CredentialsMatcher matcher) Attempts to describe the suppliedCredentialsMatcherin terms of a Credentials Query Language.static CredentialsMatcherCredentialsMatchers.either(CredentialsMatcher matcher1, CredentialsMatcher matcher2) Creates a matcher that matches when either of the supplied matchers match.static <C extends Credentials>
Iterable<C>CredentialsMatchers.filter(Iterable<C> credentials, CredentialsMatcher matcher) Filters credentials using the supplied matcher.static <C extends Credentials>
Collection<C>CredentialsMatchers.filter(Collection<C> credentials, CredentialsMatcher matcher) Filters credentials using the supplied matcher.static <C extends Credentials>
List<C>CredentialsMatchers.filter(List<C> credentials, CredentialsMatcher matcher) Filters credentials using the supplied matcher.static <C extends Credentials>
Set<C>CredentialsMatchers.filter(Set<C> credentials, CredentialsMatcher matcher) Filters credentials using the supplied matcher.static <C extends Credentials,V>
Map<C,V> CredentialsMatchers.filterKeys(Map<C, V> credentialMap, CredentialsMatcher matcher) Filters a map keyed by credentials using the supplied matcher.static <C extends Credentials,K>
Map<K,C> CredentialsMatchers.filterValues(Map<K, C> credentialMap, CredentialsMatcher matcher) Filters a map based on credential values using the supplied matcher.static <C extends Credentials>
CCredentialsMatchers.firstOrDefault(Iterable<C> credentials, CredentialsMatcher matcher, C defaultIfNone) Returns the first credential from a collection that matches the supplied matcher or if none match then the specified default.static <C extends Credentials>
CCredentialsMatchers.firstOrNull(Iterable<C> credentials, CredentialsMatcher matcher) Returns the first credential from a collection that matches the supplied matcher ornullif none match.<C extends IdCredentials>
ListBoxModelCredentialsProvider.getCredentialIds(Class<C> type, ItemGroup itemGroup, Authentication authentication, List<DomainRequirement> domainRequirements, CredentialsMatcher matcher) Deprecated.<C extends IdCredentials>
ListBoxModelCredentialsProvider.getCredentialIds(Class<C> type, Item item, Authentication authentication, List<DomainRequirement> domainRequirements, CredentialsMatcher matcher) Deprecated.<C extends IdCredentials>
ListBoxModelCredentialsProvider.getCredentialIdsInItem(Class<C> type, Item item, org.springframework.security.core.Authentication authentication, List<DomainRequirement> domainRequirements, CredentialsMatcher matcher) Returns aListBoxModelof the credentials provided by this provider which are available to the specifiedAuthenticationfor the specifiedItemand are appropriate for the specifiedDomainRequirements.<C extends IdCredentials>
ListBoxModelCredentialsProvider.getCredentialIdsInItemGroup(Class<C> type, ItemGroup itemGroup, org.springframework.security.core.Authentication authentication, List<DomainRequirement> domainRequirements, CredentialsMatcher matcher) Returns aListBoxModelof the credentials provided by this provider which are available to the specifiedAuthenticationfor items in the specifiedItemGroupand are appropriate for the specifiedDomainRequirements.static <C extends IdCredentials>
ListBoxModelCredentialsProvider.listCredentials(Class<C> type, ItemGroup itemGroup, Authentication authentication, List<DomainRequirement> domainRequirements, CredentialsMatcher matcher) static <C extends IdCredentials>
ListBoxModelCredentialsProvider.listCredentials(Class<C> type, Item item, Authentication authentication, List<DomainRequirement> domainRequirements, CredentialsMatcher matcher) Deprecated.static <C extends IdCredentials>
ListBoxModelCredentialsProvider.listCredentialsInItem(Class<C> type, Item item, org.springframework.security.core.Authentication authentication, List<DomainRequirement> domainRequirements, CredentialsMatcher matcher) Returns aListBoxModelof all credentials which are available to the specifiedAuthenticationfor use by the specifiedItem.static <C extends IdCredentials>
ListBoxModelCredentialsProvider.listCredentialsInItemGroup(Class<C> type, ItemGroup itemGroup, org.springframework.security.core.Authentication authentication, List<DomainRequirement> domainRequirements, CredentialsMatcher matcher) Returns aListBoxModelof all credentials which are available to the specifiedAuthenticationfor use by theItems in the specifiedItemGroup.static CredentialsMatcherCredentialsMatchers.noneOf(CredentialsMatcher... matchers) Creates a matcher that matches when none of the supplied matchers match.static CredentialsMatcherCredentialsMatchers.not(CredentialsMatcher matcher) Creates a matcher that inverts the supplied matcher. -
Uses of CredentialsMatcher in com.cloudbees.plugins.credentials.common
Methods in com.cloudbees.plugins.credentials.common with parameters of type CredentialsMatcherModifier and TypeMethodDescriptionAbstractIdCredentialsListBoxModel.includeMatching(ItemGroup context, Class<? extends C> type, List<DomainRequirement> domainRequirements, CredentialsMatcher matcher) Adds the ids of the specified credential type that are available to the specified context as the current authentication with the specified domain requirements and match the specified filter.AbstractIdCredentialsListBoxModel.includeMatching(Item context, Class<? extends C> type, List<DomainRequirement> domainRequirements, CredentialsMatcher matcher) Adds the ids of the specified credential type that are available to the specified context as the current authentication with the specified domain requirements and match the specified filter.AbstractIdCredentialsListBoxModel.includeMatchingAs(Authentication authentication, ItemGroup context, Class<? extends C> type, List<DomainRequirement> domainRequirements, CredentialsMatcher matcher) AbstractIdCredentialsListBoxModel.includeMatchingAs(Authentication authentication, Item context, Class<? extends C> type, List<DomainRequirement> domainRequirements, CredentialsMatcher matcher) AbstractIdCredentialsListBoxModel.includeMatchingAs(org.springframework.security.core.Authentication authentication, ItemGroup context, Class<? extends C> type, List<DomainRequirement> domainRequirements, CredentialsMatcher matcher) Adds the ids of the specified credential type that are available to the specified context as the specified authentication with the specified domain requirements and match the specified filter.AbstractIdCredentialsListBoxModel.includeMatchingAs(org.springframework.security.core.Authentication authentication, Item context, Class<? extends C> type, List<DomainRequirement> domainRequirements, CredentialsMatcher matcher) Adds the ids of the specified credential type that are available to the specified context as the specified authentication with the specified domain requirements and match the specified filter.AbstractIdCredentialsListBoxModel.withMatching(CredentialsMatcher matcher, C... credentials) Deprecated.prefer using theAbstractIdCredentialsListBoxModel.includeMatching(Item, Class, List, CredentialsMatcher)orAbstractIdCredentialsListBoxModel.includeMatchingAs(Authentication, Item, Class, List, CredentialsMatcher)methods to build the list box contents in order to allow credentials providers to not have to instantiate a full credential instance where those credential providers store the secrets external from Jenkins.AbstractIdCredentialsListBoxModel.withMatching(CredentialsMatcher matcher, Iterable<? extends C> credentials) Deprecated.prefer using theAbstractIdCredentialsListBoxModel.includeMatching(Item, Class, List, CredentialsMatcher)orAbstractIdCredentialsListBoxModel.includeMatchingAs(Authentication, Item, Class, List, CredentialsMatcher)methods to build the list box contents in order to allow credentials providers to not have to instantiate a full credential instance where those credential providers store the secrets external from Jenkins.AbstractIdCredentialsListBoxModel.withMatching(CredentialsMatcher matcher, Iterator<? extends C> credentials) Deprecated.prefer using theAbstractIdCredentialsListBoxModel.includeMatching(Item, Class, List, CredentialsMatcher)orAbstractIdCredentialsListBoxModel.includeMatchingAs(Authentication, Item, Class, List, CredentialsMatcher)methods to build the list box contents in order to allow credentials providers to not have to instantiate a full credential instance where those credential providers store the secrets external from Jenkins. -
Uses of CredentialsMatcher in com.cloudbees.plugins.credentials.domains
Methods in com.cloudbees.plugins.credentials.domains with parameters of type CredentialsMatcherModifier and TypeMethodDescriptionstatic <C extends Credentials>
List<C>DomainCredentials.getCredentials(Map<Domain, List<Credentials>> domainCredentialsMap, Class<C> type, List<DomainRequirement> domainRequirements, CredentialsMatcher credentialsMatcher) Helper to assist retrieving credentials from the map based store. -
Uses of CredentialsMatcher in com.cloudbees.plugins.credentials.matchers
Classes in com.cloudbees.plugins.credentials.matchers that implement CredentialsMatcherModifier and TypeClassDescriptionclassMatches all of the supplied matchers.classMatches any of the supplied matchers.classBeanPropertyMatcher<T extends Serializable>Matches credentials that have a Java Bean property with an expected value.classMatches credentials based on a constant result.classMatches credentials that areIdCredentialsand have the specifiedIdCredentials.getId().classMatches credentials that implement a specific type.classInverts a matcher.classMatches credentials that areIdCredentialsand have the specifiedCredentialsScope(s).classMatches credentials that areUsernameCredentialsand have the specifiedUsernameCredentials.getUsername()Constructors in com.cloudbees.plugins.credentials.matchers with parameters of type CredentialsMatcherConstructor parameters in com.cloudbees.plugins.credentials.matchers with type arguments of type CredentialsMatcherModifierConstructorDescriptionAllOfMatcher(List<CredentialsMatcher> matchers) Creates a new instance.AnyOfMatcher(List<CredentialsMatcher> matchers) Creates a new instance.
CredentialsProvider.getCredentialIdsInItemGroup(Class, ItemGroup, Authentication, List, CredentialsMatcher)instead.