Class AddStatusToResponse.StatusCodeMappingFunction
- java.lang.Object
-
- org.opensaml.saml.saml2.profile.impl.AddStatusToResponse.StatusCodeMappingFunction
-
- All Implemented Interfaces:
Function<org.opensaml.profile.context.ProfileRequestContext,List<String>>
- Enclosing class:
- AddStatusToResponse
public static class AddStatusToResponse.StatusCodeMappingFunction extends Object implements Function<org.opensaml.profile.context.ProfileRequestContext,List<String>>
A default method to map event IDs to SAML 2 StatusCode URIs based onEventContext.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,List<String>>codeMappingsCode mappings.private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.profile.context.EventContext>eventContextLookupStrategyStrategy function for access toEventContextto check.
-
Constructor Summary
Constructors Constructor Description StatusCodeMappingFunction(Map<String,List<String>> mappings)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>apply(org.opensaml.profile.context.ProfileRequestContext input)voidsetEventContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.profile.context.EventContext> strategy)Set lookup strategy forEventContextto check.
-
-
-
Field Detail
-
codeMappings
@Nonnull @NonnullElements private Map<String,List<String>> codeMappings
Code mappings.
-
eventContextLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.profile.context.EventContext> eventContextLookupStrategy
Strategy function for access toEventContextto check.
-
-
Method Detail
-
setEventContextLookupStrategy
public void setEventContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.profile.context.EventContext> strategy)Set lookup strategy forEventContextto check.- Parameters:
strategy- lookup strategy
-
-