Class IdPAttributePrincipalValuesFunction
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.idp.attribute.resolver.ad.impl.IdPAttributePrincipalValuesFunction
-
- All Implemented Interfaces:
Function<Principal,List<IdPAttributeValue>>,Component,DestructableComponent,InitializableComponent
public class IdPAttributePrincipalValuesFunction extends AbstractInitializableComponent implements Function<Principal,List<IdPAttributeValue>>
Engine to mine values fromIdPAttributePrincipals.
-
-
Field Summary
Fields Modifier and Type Field Description private StringattributeNameThe Attribute Name to look for.
-
Constructor Summary
Constructors Constructor Description IdPAttributePrincipalValuesFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<IdPAttributeValue>apply(Principal principal)protected voiddoInitialize()voidsetAttributeName(String attrName)Set the attribute name.-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
-
-
-
Field Detail
-
attributeName
@NonnullAfterInit @NotEmpty private String attributeName
The Attribute Name to look for.
-
-
Method Detail
-
setAttributeName
public void setAttributeName(@Nonnull @NotEmpty String attrName)
Set the attribute name.- Parameters:
attrName- the attribute name to read values from
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
apply
@Nullable public List<IdPAttributeValue> apply(@Nullable Principal principal)
- Specified by:
applyin interfaceFunction<Principal,List<IdPAttributeValue>>
-
-