Uses of Interface
com.cloudbees.plugins.credentials.CredentialsMatcher
Package
Description
-
Uses of CredentialsMatcher in com.cloudbees.plugins.credentials
Modifier and TypeInterfaceDescriptionstatic interface
A mix-in interface to allow describing a credentials matcher.Modifier and TypeMethodDescriptionstatic CredentialsMatcher
CredentialsMatchers.allOf
(CredentialsMatcher... matchers) Creates a matcher that matches when all of the supplied matchers match.static CredentialsMatcher
CredentialsMatchers.always()
Creates a matcher that always matches.static CredentialsMatcher
CredentialsMatchers.anyOf
(CredentialsMatcher... matchers) Creates a matcher that matches when any of the supplied matchers match.static CredentialsMatcher
CredentialsMatchers.both
(CredentialsMatcher matcher1, CredentialsMatcher matcher2) Creates a matcher that matches when both of the supplied matchers match.static CredentialsMatcher
CredentialsMatchers.either
(CredentialsMatcher matcher1, CredentialsMatcher matcher2) Creates a matcher that matches when either of the supplied matchers match.static CredentialsMatcher
CredentialsMatchers.instanceOf
(Class clazz) Creates a matcher that matches credentials of the specified type.static CredentialsMatcher
CredentialsMatchers.never()
Creates a matcher that never matches.static CredentialsMatcher
CredentialsMatchers.noneOf
(CredentialsMatcher... matchers) Creates a matcher that matches when none of the supplied matchers match.static CredentialsMatcher
CredentialsMatchers.not
(CredentialsMatcher matcher) Creates a matcher that inverts the supplied matcher.static CredentialsMatcher
Attempts to parse a Credentials Query Language expression and construct the corresponding matcher.static CredentialsMatcher
Creates a matcher that matchesIdCredentials
with 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 CredentialsMatcher
CredentialsMatchers.withScope
(CredentialsScope scope) Creates a matcher that matchesCredentials
with the suppliedCredentialsScope
.static CredentialsMatcher
CredentialsMatchers.withScopes
(CredentialsScope... scopes) Creates a matcher that matchesCredentials
with the suppliedCredentialsScope
.static CredentialsMatcher
CredentialsMatchers.withScopes
(Collection<CredentialsScope> scopes) Creates a matcher that matchesCredentials
with the suppliedCredentialsScope
.static CredentialsMatcher
CredentialsMatchers.withUsername
(String username) Creates a matcher that matchesUsernameCredentials
with the suppliedUsernameCredentials.getUsername()
Modifier and TypeMethodDescriptionstatic CredentialsMatcher
CredentialsMatchers.allOf
(CredentialsMatcher... matchers) Creates a matcher that matches when all of the supplied matchers match.static CredentialsMatcher
CredentialsMatchers.anyOf
(CredentialsMatcher... matchers) Creates a matcher that matches when any of the supplied matchers match.static CredentialsMatcher
CredentialsMatchers.both
(CredentialsMatcher matcher1, CredentialsMatcher matcher2) Creates a matcher that matches when both of the supplied matchers match.static String
CredentialsMatchers.describe
(CredentialsMatcher matcher) Attempts to describe the suppliedCredentialsMatcher
in terms of a Credentials Query Language.static CredentialsMatcher
CredentialsMatchers.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 ornull
if 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 aListBoxModel
of the credentials provided by this provider which are available to the specifiedAuthentication
for the specifiedItem
and are appropriate for the specifiedDomainRequirement
s.<C extends IdCredentials>
ListBoxModelCredentialsProvider.getCredentialIdsInItemGroup
(Class<C> type, ItemGroup itemGroup, org.springframework.security.core.Authentication authentication, List<DomainRequirement> domainRequirements, CredentialsMatcher matcher) Returns aListBoxModel
of the credentials provided by this provider which are available to the specifiedAuthentication
for items in the specifiedItemGroup
and are appropriate for the specifiedDomainRequirement
s.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 aListBoxModel
of all credentials which are available to the specifiedAuthentication
for 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 aListBoxModel
of all credentials which are available to the specifiedAuthentication
for use by theItem
s in the specifiedItemGroup
.static CredentialsMatcher
CredentialsMatchers.noneOf
(CredentialsMatcher... matchers) Creates a matcher that matches when none of the supplied matchers match.static CredentialsMatcher
CredentialsMatchers.not
(CredentialsMatcher matcher) Creates a matcher that inverts the supplied matcher. -
Uses of CredentialsMatcher in com.cloudbees.plugins.credentials.common
Modifier 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
Modifier 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
Modifier and TypeClassDescriptionclass
Matches all of the supplied matchers.class
Matches any of the supplied matchers.class
BeanPropertyMatcher<T extends Serializable>
Matches credentials that have a Java Bean property with an expected value.class
Matches credentials based on a constant result.class
Matches credentials that areIdCredentials
and have the specifiedIdCredentials.getId()
.class
Matches credentials that implement a specific type.class
Inverts a matcher.class
Matches credentials that areIdCredentials
and have the specifiedCredentialsScope
(s).class
Matches credentials that areUsernameCredentials
and have the specifiedUsernameCredentials.getUsername()
ModifierConstructorDescriptionAllOfMatcher
(List<CredentialsMatcher> matchers) Creates a new instance.AnyOfMatcher
(List<CredentialsMatcher> matchers) Creates a new instance.
CredentialsProvider.getCredentialIdsInItemGroup(Class, ItemGroup, Authentication, List, CredentialsMatcher)
instead.