public class EntityIDDigestGenerator extends Object implements 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.
|
@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 input)
apply in interface Function<CriteriaSet,String>Copyright © 1999–2017 Shibboleth Consortium. All rights reserved.