Class StaticCredentialResolver
java.lang.Object
org.opensaml.security.credential.impl.AbstractCredentialResolver
org.opensaml.security.credential.impl.StaticCredentialResolver
- All Implemented Interfaces:
Resolver<Credential,
,CriteriaSet> CredentialResolver
- Direct Known Subclasses:
StaticKeyInfoCredentialResolver
Simple implementation of
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
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<Credential>
List of credentials held by this resolver. -
Constructor Summary
ConstructorsConstructorDescriptionStaticCredentialResolver
(List<Credential> credentials) Constructor.StaticCredentialResolver
(Credential credential) Constructor. -
Method Summary
Methods inherited from class org.opensaml.security.credential.impl.AbstractCredentialResolver
resolveSingle
-
Field Details
-
creds
List of credentials held by this resolver.
-
-
Constructor Details
-
StaticCredentialResolver
public StaticCredentialResolver(@Nonnull @ParameterName(name="credentials") List<Credential> credentials) Constructor.- Parameters:
credentials
- collection of credentials to be held by this resolver
-
StaticCredentialResolver
Constructor.- Parameters:
credential
- a single credential to be held by this resolver
-
-
Method Details
-
resolve
@Nonnull public Iterable<Credential> resolve(@Nullable CriteriaSet criteria) throws ResolverException - Specified by:
resolve
in interfaceResolver<Credential,
CriteriaSet> - Specified by:
resolve
in classAbstractCredentialResolver
- Throws:
ResolverException
-