Modifier and Type | Method and Description |
---|---|
static 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 |
CredentialsMatchers.withId(String id)
Creates a matcher that matches
IdCredentials with the
supplied IdCredentials.getId() |
static CredentialsMatcher |
CredentialsMatchers.withScope(CredentialsScope scope)
Creates a matcher that matches
Credentials with the supplied CredentialsScope . |
static CredentialsMatcher |
CredentialsMatchers.withScopes(Collection<CredentialsScope> scopes)
Creates a matcher that matches
Credentials with the supplied CredentialsScope . |
static CredentialsMatcher |
CredentialsMatchers.withScopes(CredentialsScope... scopes)
Creates a matcher that matches
Credentials with the supplied CredentialsScope . |
static CredentialsMatcher |
CredentialsMatchers.withUsername(String username)
Creates a matcher that matches
UsernameCredentials with the
supplied UsernameCredentials.getUsername() |
Modifier and Type | Method and Description |
---|---|
static 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 CredentialsMatcher |
CredentialsMatchers.either(CredentialsMatcher matcher1,
CredentialsMatcher matcher2)
Creates a matcher that matches when either of the supplied matchers match.
|
static <C extends Credentials> |
CredentialsMatchers.filter(Collection<C> credentials,
CredentialsMatcher matcher)
Filters credentials using the supplied matcher.
|
static <C extends Credentials> |
CredentialsMatchers.filter(Iterable<C> credentials,
CredentialsMatcher matcher)
Filters credentials using the supplied matcher.
|
static <C extends Credentials> |
CredentialsMatchers.filter(List<C> credentials,
CredentialsMatcher matcher)
Filters credentials using the supplied matcher.
|
static <C extends Credentials> |
CredentialsMatchers.filter(Set<C> credentials,
CredentialsMatcher matcher)
Filters credentials using the supplied matcher.
|
static <C extends Credentials,V> |
CredentialsMatchers.filterKeys(Map<C,V> credentialMap,
CredentialsMatcher matcher)
Filters a map keyed by credentials using the supplied matcher.
|
static <C extends Credentials,K> |
CredentialsMatchers.filterValues(Map<K,C> credentialMap,
CredentialsMatcher matcher)
Filters a map based on credential values using the supplied matcher.
|
static <C extends Credentials> |
CredentialsMatchers.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> |
CredentialsMatchers.firstOrNull(Iterable<C> credentials,
CredentialsMatcher matcher)
Returns the first credential from a collection that matches the supplied matcher or
null if none match. |
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.
|
Modifier and Type | Method and Description |
---|---|
AbstractIdCredentialsListBoxModel<T,C> |
AbstractIdCredentialsListBoxModel.withMatching(CredentialsMatcher matcher,
C... credentials)
Adds the matching subset of suppled credentials to the model.
|
AbstractIdCredentialsListBoxModel<T,C> |
AbstractIdCredentialsListBoxModel.withMatching(CredentialsMatcher matcher,
Iterable<? extends C> credentials)
Adds the matching subset of suppled credentials to the model.
|
AbstractIdCredentialsListBoxModel<T,C> |
AbstractIdCredentialsListBoxModel.withMatching(CredentialsMatcher matcher,
Iterator<? extends C> credentials)
Adds the matching subset of suppled credentials to the model.
|
Modifier and Type | Method and Description |
---|---|
static <C extends Credentials> |
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.
|
Modifier and Type | Class and Description |
---|---|
class |
AllOfMatcher
Matches all of the supplied matchers.
|
class |
AnyOfMatcher
Matches any of the supplied matchers.
|
class |
ConstantMatcher
Matches credentials based on a constant result.
|
class |
IdMatcher
Matches credentials that are
IdCredentials and have the specified IdCredentials.getId() . |
class |
InstanceOfMatcher
Matches credentials that implement a specific type.
|
class |
NotMatcher
Inverts a matcher.
|
class |
ScopeMatcher
Matches credentials that are
IdCredentials and have the specified CredentialsScope (s). |
class |
UsernameMatcher
Matches credentials that are
UsernameCredentials and have the specified UsernameCredentials.getUsername() |
Constructor and Description |
---|
NotMatcher(CredentialsMatcher matcher)
Creates a new instance.
|
Constructor and Description |
---|
AllOfMatcher(List<CredentialsMatcher> matchers)
Creates a new instance.
|
AnyOfMatcher(List<CredentialsMatcher> matchers)
Creates a new instance.
|
Copyright © 2015. All rights reserved.