Search in sources :

Example 16 with MessageSourceAccessor

use of org.springframework.context.support.MessageSourceAccessor in project spring-security by spring-projects.

the class ExceptionTranslationFilter method setMessageSource.

/**
 * @since 5.5
 */
@Override
public void setMessageSource(MessageSource messageSource) {
    Assert.notNull(messageSource, "messageSource cannot be null");
    this.messages = new MessageSourceAccessor(messageSource);
}
Also used : MessageSourceAccessor(org.springframework.context.support.MessageSourceAccessor)

Example 17 with MessageSourceAccessor

use of org.springframework.context.support.MessageSourceAccessor in project spring-security by spring-projects.

the class ConcurrentSessionControlAuthenticationStrategy method setMessageSource.

/**
 * Sets the {@link MessageSource} used for reporting errors back to the user when the
 * user has exceeded the maximum number of authentications.
 */
@Override
public void setMessageSource(MessageSource messageSource) {
    Assert.notNull(messageSource, "messageSource cannot be null");
    this.messages = new MessageSourceAccessor(messageSource);
}
Also used : MessageSourceAccessor(org.springframework.context.support.MessageSourceAccessor)

Example 18 with MessageSourceAccessor

use of org.springframework.context.support.MessageSourceAccessor in project spring-security by spring-projects.

the class AbstractRememberMeServices method setMessageSource.

/**
 * @since 5.5
 */
@Override
public void setMessageSource(MessageSource messageSource) {
    Assert.notNull(messageSource, "messageSource cannot be null");
    this.messages = new MessageSourceAccessor(messageSource);
}
Also used : MessageSourceAccessor(org.springframework.context.support.MessageSourceAccessor)

Aggregations

MessageSourceAccessor (org.springframework.context.support.MessageSourceAccessor)18 Test (org.junit.Test)3 Test (org.junit.jupiter.api.Test)3 ReloadableResourceBundleMessageSource (org.springframework.context.support.ReloadableResourceBundleMessageSource)3 Locale (java.util.Locale)2 TerminateSessionEvent (com.evolveum.midpoint.TerminateSessionEvent)1 AuthenticationEvaluatorImpl (com.evolveum.midpoint.authentication.impl.evaluator.AuthenticationEvaluatorImpl)1 GuiProfiledPrincipal (com.evolveum.midpoint.model.api.authentication.GuiProfiledPrincipal)1 GuiProfiledPrincipalManager (com.evolveum.midpoint.model.api.authentication.GuiProfiledPrincipalManager)1 PrismObject (com.evolveum.midpoint.prism.PrismObject)1 OperationResult (com.evolveum.midpoint.schema.result.OperationResult)1 List (java.util.List)1 DateTime (org.joda.time.DateTime)1 Duration (org.joda.time.Duration)1 MockHttpServletRequest (org.springframework.mock.web.MockHttpServletRequest)1 MockHttpServletResponse (org.springframework.mock.web.MockHttpServletResponse)1 BadCredentialsException (org.springframework.security.authentication.BadCredentialsException)1 DefaultLoginPageGeneratingFilter (org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter)1