Class 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. Returns null for a null input or empty collection of IdP attribute values. Null IdP attribute values are ignored. The hash returned is the Base64 encoded representation of the SHA-256 digest.
    • Field Detail

      • log

        @Nonnull
        private final Logger log
        Class logger.
    • Constructor Detail

      • AttributeValuesHashFunction

        public AttributeValuesHashFunction()
    • Method Detail

      • apply

        @Nullable
        public String apply​(@Nullable @NonnullElements
                            Collection<net.shibboleth.idp.attribute.IdPAttributeValue> input)
        Specified by:
        apply in interface Function<Collection<net.shibboleth.idp.attribute.IdPAttributeValue>,​String>