public class StaticKeyInfoCredentialResolver extends StaticCredentialResolver implements KeyInfoCredentialResolver
KeyInfoCredentialResolver
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 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 and Description |
---|
StaticKeyInfoCredentialResolver(org.opensaml.security.credential.Credential credential)
Constructor.
|
StaticKeyInfoCredentialResolver(List<org.opensaml.security.credential.Credential> credentials)
Constructor.
|
resolve
resolveSingle
public StaticKeyInfoCredentialResolver(@Nonnull List<org.opensaml.security.credential.Credential> credentials)
credentials
- collection of credentials to be held by this resolverpublic StaticKeyInfoCredentialResolver(@Nonnull org.opensaml.security.credential.Credential credential)
credential
- a single credential to be held by this resolverCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.