Interface KeyInfoProvider

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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​(org.opensaml.xmlsec.keyinfo.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.
    • Method Detail

      • process

        @Nullable
        Collection<org.opensaml.security.credential.Credential> process​(@Nonnull
                                                                        org.opensaml.xmlsec.keyinfo.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
        Process a specified KeyInfo child (XMLobject) and attempt to resolve a credential from it.
        Parameters:
        resolver - reference to a resolver which is calling the provider
        keyInfoChild - the KeyInfo child being processed
        criteriaSet - the credential criteria the credential must satisfy
        kiContext - the resolution context, used for sharing state amongst resolvers and providers
        Returns:
        a resolved Credential collection, or null
        Throws:
        org.opensaml.security.SecurityException - if there is an error during credential resolution. Note: failure to resolve a credential is not an error.
      • handles

        boolean handles​(@Nonnull
                        org.opensaml.core.xml.XMLObject keyInfoChild)
        Evaluate whether the given provider should attempt to handle resolving a credential from the specified KeyInfo child. An evaluation of true 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