Package org.opensaml.xmlsec.keyinfo.impl
Class StaticKeyInfoCredentialResolver
- java.lang.Object
-
- org.opensaml.security.credential.impl.AbstractCredentialResolver
-
- org.opensaml.security.credential.impl.StaticCredentialResolver
-
- org.opensaml.xmlsec.keyinfo.impl.StaticKeyInfoCredentialResolver
-
- All Implemented Interfaces:
net.shibboleth.utilities.java.support.resolver.Resolver<org.opensaml.security.credential.Credential,net.shibboleth.utilities.java.support.resolver.CriteriaSet>,org.opensaml.security.credential.CredentialResolver,org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver
public class StaticKeyInfoCredentialResolver extends org.opensaml.security.credential.impl.StaticCredentialResolver implements org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolverSimple implementation ofKeyInfoCredentialResolverwhich 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 KeyInfoCredentialResolver implementation which does support evaluation and filtering based on supplied evaluable criteria, see
CollectionKeyInfoCredentialResolver.This implementation might also be used at the end of a chain of KeyInfoCredentialResolvers in order to supply a default, fallback set of credentials, if none could otherwise be resolved.
-
-
Constructor Summary
Constructors Constructor Description StaticKeyInfoCredentialResolver(List<org.opensaml.security.credential.Credential> credentials)Constructor.StaticKeyInfoCredentialResolver(org.opensaml.security.credential.Credential credential)Constructor.
-
-
-
Constructor Detail
-
StaticKeyInfoCredentialResolver
public StaticKeyInfoCredentialResolver(@Nonnull @ParameterName(name="credentials") List<org.opensaml.security.credential.Credential> credentials)Constructor.- Parameters:
credentials- collection of credentials to be held by this resolver
-
StaticKeyInfoCredentialResolver
public StaticKeyInfoCredentialResolver(@Nonnull @ParameterName(name="credential") org.opensaml.security.credential.Credential credential)Constructor.- Parameters:
credential- a single credential to be held by this resolver
-
-