public interface KeyInfoProvider
KeyInfoCredentialResolver
which
support resolving Credential
s based on a child element of KeyInfo
.Modifier and Type | Method and Description |
---|---|
boolean |
handles(org.opensaml.core.xml.XMLObject keyInfoChild)
Evaluate whether the given provider should attempt to handle resolving a credential
from the specified KeyInfo child.
|
Collection<org.opensaml.security.credential.Credential> |
process(KeyInfoCredentialResolver resolver,
org.opensaml.core.xml.XMLObject keyInfoChild,
net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet,
KeyInfoResolutionContext kiContext)
Process a specified KeyInfo child (XMLobject) and attempt to resolve a credential from it.
|
@Nullable Collection<org.opensaml.security.credential.Credential> process(@Nonnull KeyInfoCredentialResolver resolver, @Nonnull org.opensaml.core.xml.XMLObject keyInfoChild, @Nullable net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet, @Nonnull KeyInfoResolutionContext kiContext) throws org.opensaml.security.SecurityException
resolver
- reference to a resolver which is calling the providerkeyInfoChild
- the KeyInfo child being processedcriteriaSet
- the credential criteria the credential must satisfykiContext
- the resolution context, used for sharing state amongst resolvers and providersorg.opensaml.security.SecurityException
- if there is an error during credential resolution.
Note: failure to resolve a credential is not an error.boolean handles(@Nonnull org.opensaml.core.xml.XMLObject keyInfoChild)
true
does not guarantee that a credential can or will be
extracted form the particular KeyInfo child, only that processing should be attempted.keyInfoChild
- the KeyInfo child object to considerCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.