Class SpringStatusMessageLookupFunction
- java.lang.Object
-
- net.shibboleth.idp.profile.context.navigate.SpringStatusMessageLookupFunction
-
- All Implemented Interfaces:
Function<org.opensaml.profile.context.ProfileRequestContext,String>,Aware,MessageSourceAware
public class SpringStatusMessageLookupFunction extends Object implements Function<org.opensaml.profile.context.ProfileRequestContext,String>, MessageSourceAware
A function that returns a status message to include, if any, in a SAML response based on the current profile request context state, using Spring'sMessageSourcefunctionality.
-
-
Field Summary
Fields Modifier and Type Field Description private MessageSourcemessageSourceMessageSource injected by Spring, typically the parent ApplicationContext itself.
-
Constructor Summary
Constructors Constructor Description SpringStatusMessageLookupFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringapply(org.opensaml.profile.context.ProfileRequestContext input)voidsetMessageSource(MessageSource source)
-
-
-
Field Detail
-
messageSource
@Nonnull private MessageSource messageSource
MessageSource injected by Spring, typically the parent ApplicationContext itself.
-
-
Method Detail
-
apply
@Nullable public String apply(@Nullable org.opensaml.profile.context.ProfileRequestContext input)
-
setMessageSource
public void setMessageSource(MessageSource source)
- Specified by:
setMessageSourcein interfaceMessageSourceAware
-
-