Class NameIDAuditExtractor
- java.lang.Object
-
- net.shibboleth.idp.saml.audit.impl.NameIDAuditExtractor
-
- All Implemented Interfaces:
Function<ProfileRequestContext,String>
public class NameIDAuditExtractor extends Object implements Function<ProfileRequestContext,String>
Functionthat returns the Name Identifier from a request or response.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,SAMLObject>responseLookupStrategyLookup strategy for message to read from.
-
Constructor Summary
Constructors Constructor Description NameIDAuditExtractor(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
-
responseLookupStrategy
@Nonnull private final Function<ProfileRequestContext,SAMLObject> responseLookupStrategy
Lookup strategy for message to read from.
-
-
Constructor Detail
-
NameIDAuditExtractor
public NameIDAuditExtractor(@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 identifier, or null
-
-