Class DefaultLocalDynamicSourceKeyGenerator

  • All Implemented Interfaces:
    Function<net.shibboleth.utilities.java.support.resolver.CriteriaSet,​String>

    public class DefaultLocalDynamicSourceKeyGenerator
    extends EntityIDDigestGenerator
    A default implementation of EntityIDDigestGenerator for use as a source key generator with LocalDynamicMetadataResolver.

    This is a simple subclass of EntityIDDigestGenerator which defaults in the StringDigester to use lower-case hex encoding of the SHA-1 digest of the entity ID from EntityIdCriterion. Since this is the same representation typically used for the SAML SourceID used in artifacts, this implementation adds in support for understanding ArtifactCriterion carrying a SAMLSourceIDArtifact.

    • Field Detail

    • Constructor Detail

      • DefaultLocalDynamicSourceKeyGenerator

        public DefaultLocalDynamicSourceKeyGenerator()
        Constructor.
      • DefaultLocalDynamicSourceKeyGenerator

        public DefaultLocalDynamicSourceKeyGenerator​(@Nullable
                                                     String keyPrefix,
                                                     @Nullable
                                                     String keySuffix,
                                                     @Nullable
                                                     String valueSeparator)
        Constructor.
        Parameters:
        keyPrefix - optional prefix for the digested value
        keySuffix - optional suffix for the digested value
        valueSeparator - optional separator between the prefix, digest and suffix values
    • Method Detail

      • apply

        @Nullable
        public String apply​(@Nullable
                            net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria)
        Specified by:
        apply in interface Function<net.shibboleth.utilities.java.support.resolver.CriteriaSet,​String>
        Overrides:
        apply in class EntityIDDigestGenerator