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>
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.DefaultLocalDynamicSourceKeyGenerator
(String keyPrefix, String keySuffix, String valueSeparator) Constructor. -
Method Summary
Methods inherited from class org.opensaml.saml.metadata.resolver.impl.EntityIDDigestGenerator
buildKey
-
Field Details
-
HEX
Hex encoder.
-
-
Constructor Details
-
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 Details
-
apply
- Specified by:
apply
in interfaceFunction<CriteriaSet,
String> - Overrides:
apply
in classEntityIDDigestGenerator
-