public class EntityIDDigestGenerator extends Object implements com.google.common.base.Function<CriteriaSet,String>
EntityIdCriterion
and produce the digest of the value.
By default the digest strategy used is the SHA-1 algorithm, with output in lower-case hexadecimal. By default, prefix, suffix and value separator are null.
| Modifier and Type | Field and Description |
|---|---|
private StringDigester |
digester
String digester for the EntityDescriptor's entityID.
|
private String |
prefix
Prefix to prepend to the digested value.
|
private String |
separator
Common separator between prefix, digested and suffix values.
|
private String |
suffix
Suffix to append to the digested value.
|
| Constructor and Description |
|---|
EntityIDDigestGenerator()
Constructor.
|
EntityIDDigestGenerator(StringDigester valueDigester,
String keyPrefix,
String keySuffix,
String valueSeparator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
apply(CriteriaSet criteria) |
protected String |
buildKey(String keyValue)
Build the key by applying the configured prefix and/or suffix, if present.
|
@Nonnull private StringDigester digester
public EntityIDDigestGenerator()
public EntityIDDigestGenerator(@Nullable StringDigester valueDigester, @Nullable String keyPrefix, @Nullable String keySuffix, @Nullable String valueSeparator)
valueDigester - optional digeser for the entityID valuekeyPrefix - optional prefix for the digested valuekeySuffix - optional suffix for the digested valuevalueSeparator - optional separator between the prefix, digest and suffix valuespublic String apply(CriteriaSet criteria)
apply in interface com.google.common.base.Function<CriteriaSet,String>Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.