Class BasicNamingFunction<T>
java.lang.Object
net.shibboleth.idp.attribute.transcoding.BasicNamingFunction<T>
- Type Parameters:
T
- type of object
- All Implemented Interfaces:
AttributeTranscoderRegistry.NamingFunction<T>
public class BasicNamingFunction<T>
extends Object
implements AttributeTranscoderRegistry.NamingFunction<T>
Basic implementation of a
AttributeTranscoderRegistry.NamingFunction
.- Since:
- 4.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionNaming function.Object type. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
objectType
Object type. -
namingFunction
Naming function.
-
-
Constructor Details
-
BasicNamingFunction
public BasicNamingFunction(@Nonnull @ParameterName(name="claz") Class<T> claz, @Nonnull @ParameterName(name="function") Function<T, String> function) Constructor.- Parameters:
claz
- object typefunction
- naming function
-
-
Method Details
-
getType
Gets the type of object supported.- Specified by:
getType
in interfaceAttributeTranscoderRegistry.NamingFunction<T>
- Returns:
- object type
-
getFunction
Gets the function that produces a name for an input object.- Specified by:
getFunction
in interfaceAttributeTranscoderRegistry.NamingFunction<T>
- Returns:
- naming function
-