Class DefaultLocalDynamicSourceKeyGenerator
- java.lang.Object
-
- org.opensaml.saml.metadata.resolver.impl.EntityIDDigestGenerator
-
- org.opensaml.saml.metadata.resolver.impl.DefaultLocalDynamicSourceKeyGenerator
-
- All Implemented Interfaces:
Function<CriteriaSet,String>
public class DefaultLocalDynamicSourceKeyGenerator extends EntityIDDigestGenerator
A default implementation ofEntityIDDigestGeneratorfor use as a source key generator withLocalDynamicMetadataResolver.This is a simple subclass of
EntityIDDigestGeneratorwhich defaults in theStringDigesterto use lower-case hex encoding of the SHA-1 digest of the entity ID fromEntityIdCriterion. Since this is the same representation typically used for the SAML SourceID used in artifacts, this implementation adds in support for understandingArtifactCriterioncarrying aSAMLSourceIDArtifact.
-
-
Field Summary
Fields Modifier and Type Field Description private static BaseEncodingHEXHex encoder.
-
Constructor Summary
Constructors Constructor Description DefaultLocalDynamicSourceKeyGenerator()Constructor.DefaultLocalDynamicSourceKeyGenerator(String keyPrefix, String keySuffix, String valueSeparator)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringapply(CriteriaSet criteria)-
Methods inherited from class org.opensaml.saml.metadata.resolver.impl.EntityIDDigestGenerator
buildKey
-
-
-
-
Field Detail
-
HEX
private static final BaseEncoding HEX
Hex encoder.
-
-
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 valuekeySuffix- optional suffix for the digested valuevalueSeparator- optional separator between the prefix, digest and suffix values
-
-
Method Detail
-
apply
@Nullable public String apply(@Nullable CriteriaSet criteria)
- Specified by:
applyin interfaceFunction<CriteriaSet,String>- Overrides:
applyin classEntityIDDigestGenerator
-
-