Class NameIDFormatAuditExtractor
- java.lang.Object
-
- net.shibboleth.idp.saml.audit.impl.NameIDFormatAuditExtractor
-
- All Implemented Interfaces:
Function<ProfileRequestContext,String>
public class NameIDFormatAuditExtractor extends Object implements Function<ProfileRequestContext,String>
Functionthat returns the Name Identifier Format from a SAML Subject.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,SAMLObject>messageLookupStrategyLookup strategy for message to read from.
-
Constructor Summary
Constructors Constructor Description NameIDFormatAuditExtractor(Function<ProfileRequestContext,SAMLObject> strategy)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringapply(ProfileRequestContext input)private Stringapply(Assertion assertion)Apply function to an assertion.private Stringapply(Assertion assertion)Apply function to an assertion.
-
-
-
Field Detail
-
messageLookupStrategy
@Nonnull private final Function<ProfileRequestContext,SAMLObject> messageLookupStrategy
Lookup strategy for message to read from.
-
-
Constructor Detail
-
NameIDFormatAuditExtractor
public NameIDFormatAuditExtractor(@Nonnull Function<ProfileRequestContext,SAMLObject> strategy)Constructor.- Parameters:
strategy- lookup strategy for message
-
-
Method Detail
-
apply
@Nullable public String apply(@Nullable ProfileRequestContext input)
- Specified by:
applyin interfaceFunction<ProfileRequestContext,String>
-
apply
@Nullable private String apply(@Nonnull Assertion assertion)
Apply function to an assertion.- Parameters:
assertion- assertion to operate on- Returns:
- the format, or null
-
-