Class AttributeValuesHashFunction
- java.lang.Object
-
- net.shibboleth.idp.consent.logic.impl.AttributeValuesHashFunction
-
- All Implemented Interfaces:
Function<Collection<net.shibboleth.idp.attribute.IdPAttributeValue>,String>
public class AttributeValuesHashFunction extends Object implements Function<Collection<net.shibboleth.idp.attribute.IdPAttributeValue>,String>
Function to calculate the hash of the values of an IdP attribute. Returnsnullfor anullinput or empty collection of IdP attribute values.NullIdP attribute values are ignored. The hash returned is the Base64 encoded representation of the SHA-256 digest.
-
-
Constructor Summary
Constructors Constructor Description AttributeValuesHashFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringapply(Collection<net.shibboleth.idp.attribute.IdPAttributeValue> input)
-
-
-
Field Detail
-
log
@Nonnull private final Logger log
Class logger.
-
-
Method Detail
-
apply
@Nullable public String apply(@Nullable @NonnullElements Collection<net.shibboleth.idp.attribute.IdPAttributeValue> input)
- Specified by:
applyin interfaceFunction<Collection<net.shibboleth.idp.attribute.IdPAttributeValue>,String>
-
-