Package org.opensaml.xmlsec.keyinfo.impl
Interface KeyInfoProvider
-
- All Known Implementing Classes:
AbstractKeyInfoProvider
,DEREncodedKeyValueProvider
,DSAKeyValueProvider
,InlineX509DataProvider
,KeyInfoReferenceProvider
,RSAKeyValueProvider
public interface KeyInfoProvider
Interface for providers used in conjunction with aKeyInfoCredentialResolver
which support resolvingCredential
s based on a child element ofKeyInfo
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
handles(XMLObject keyInfoChild)
Evaluate whether the given provider should attempt to handle resolving a credential from the specified KeyInfo child.Collection<Credential>
process(KeyInfoCredentialResolver resolver, XMLObject keyInfoChild, CriteriaSet criteriaSet, KeyInfoResolutionContext kiContext)
Process a specified KeyInfo child (XMLobject) and attempt to resolve a credential from it.
-
-
-
Method Detail
-
process
@Nullable Collection<Credential> process(@Nonnull KeyInfoCredentialResolver resolver, @Nonnull XMLObject keyInfoChild, @Nullable CriteriaSet criteriaSet, @Nonnull KeyInfoResolutionContext kiContext) throws SecurityException
Process a specified KeyInfo child (XMLobject) and attempt to resolve a credential from it.- Parameters:
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 providers- Returns:
- a resolved Credential collection, or null
- Throws:
SecurityException
- if there is an error during credential resolution. Note: failure to resolve a credential is not an error.
-
handles
boolean handles(@Nonnull XMLObject keyInfoChild)
Evaluate whether the given provider should attempt to handle resolving a credential from the specified KeyInfo child. An evaluation oftrue
does not guarantee that a credential can or will be extracted form the particular KeyInfo child, only that processing should be attempted.- Parameters:
keyInfoChild
- the KeyInfo child object to consider- Returns:
- true if the provider should attempt to resolve credentials, false otherwise
-
-