Class SpringStatusMessageLookupFunction
java.lang.Object
net.shibboleth.idp.profile.context.navigate.SpringStatusMessageLookupFunction
- All Implemented Interfaces:
Function<ProfileRequestContext,String>
,Aware
,MessageSourceAware
public class SpringStatusMessageLookupFunction extends Object implements Function<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's
MessageSource
functionality.-
Field Summary
Fields Modifier and Type Field Description private MessageSource
messageSource
MessageSource injected by Spring, typically the parent ApplicationContext itself. -
Constructor Summary
Constructors Constructor Description SpringStatusMessageLookupFunction()
-
Method Summary
Modifier and Type Method Description String
apply(ProfileRequestContext input)
void
setMessageSource(MessageSource source)
-
Field Details
-
messageSource
MessageSource injected by Spring, typically the parent ApplicationContext itself.
-
-
Constructor Details
-
SpringStatusMessageLookupFunction
public SpringStatusMessageLookupFunction()
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<ProfileRequestContext,String>
-
setMessageSource
- Specified by:
setMessageSource
in interfaceMessageSourceAware
-