Class KeyInfoReferenceProvider
java.lang.Object
org.opensaml.xmlsec.keyinfo.impl.provider.AbstractKeyInfoProvider
org.opensaml.xmlsec.keyinfo.impl.provider.KeyInfoReferenceProvider
- All Implemented Interfaces:
KeyInfoProvider
Implementation of
KeyInfoProvider which supports KeyInfoReference.
To prevent cycles, only a single reference step is permitted. Only same-document references are supported.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected KeyInfoReferencegetKeyInfoReference(XMLObject xmlObject) Get the KeyInfoReference from the passed XML object.booleanEvaluate whether the given provider should attempt to handle resolving a credential from the specified KeyInfo child.process(KeyInfoCredentialResolver resolver, XMLObject keyInfoChild, CriteriaSet criteriaSet, KeyInfoResolutionContext kiContext) Process a specified KeyInfo child (XMLobject) and attempt to resolve a credential from it.Methods inherited from class org.opensaml.xmlsec.keyinfo.impl.provider.AbstractKeyInfoProvider
buildCredentialContext, extractKeyValue
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
KeyInfoReferenceProvider
public KeyInfoReferenceProvider()
-
-
Method Details
-
handles
Evaluate whether the given provider should attempt to handle resolving a credential from the specified KeyInfo child. An evaluation oftruedoes 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
-
getKeyInfoReference
Get the KeyInfoReference from the passed XML object.- Parameters:
xmlObject- an XML object, presumably aKeyInfoReference- Returns:
- the KeyInfoReference which was found, or null if none or invalid
-