public class StaticCredentialResolver extends AbstractCredentialResolver
CredentialResolver
which just stores
and returns a static set of credentials.
Note: no filtering or other evaluation of the credentials is performed. Any Criterion
specified are ignored. For a similar Collection-based CredentialResolver implementation which does support
evaluation and filtering based on supplied evaluable criteria, see CollectionCredentialResolver
.
Modifier and Type | Field and Description |
---|---|
private List<Credential> |
creds
List of credentials held by this resolver.
|
Constructor and Description |
---|
StaticCredentialResolver(Credential credential)
Constructor.
|
StaticCredentialResolver(List<Credential> credentials)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Iterable<Credential> |
resolve(net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria) |
resolveSingle
private List<Credential> creds
public StaticCredentialResolver(@Nonnull List<Credential> credentials)
credentials
- collection of credentials to be held by this resolverpublic StaticCredentialResolver(@Nonnull Credential credential)
credential
- a single credential to be held by this resolver@Nonnull public Iterable<Credential> resolve(@Nullable net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria) throws net.shibboleth.utilities.java.support.resolver.ResolverException
resolve
in interface net.shibboleth.utilities.java.support.resolver.Resolver<Credential,net.shibboleth.utilities.java.support.resolver.CriteriaSet>
resolve
in class AbstractCredentialResolver
net.shibboleth.utilities.java.support.resolver.ResolverException
Copyright © 1999–2020 Shibboleth Consortium. All rights reserved.