public class DefaultLocalDynamicSourceKeyGenerator extends EntityIDDigestGenerator
Function 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.
| Modifier and Type | Field and Description |
|---|---|
private static com.google.common.io.BaseEncoding |
HEX
Hex encoder.
|
| Constructor and Description |
|---|
DefaultLocalDynamicSourceKeyGenerator()
Constructor.
|
DefaultLocalDynamicSourceKeyGenerator(String keyPrefix,
String keySuffix,
String valueSeparator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
apply(CriteriaSet criteria) |
buildKeypublic DefaultLocalDynamicSourceKeyGenerator()
public DefaultLocalDynamicSourceKeyGenerator(@Nullable String keyPrefix, @Nullable String keySuffix, @Nullable String valueSeparator)
keyPrefix - optional prefix for the digested valuekeySuffix - optional suffix for the digested valuevalueSeparator - optional separator between the prefix, digest and suffix valuespublic String apply(@Nullable CriteriaSet criteria)
apply in interface com.google.common.base.Function<CriteriaSet,String>apply in class EntityIDDigestGeneratorCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.