@Override public void afterPropertiesSet() throws Exception { super.afterPropertiesSet(); Assert.notNull(this.configuration, "configuration cannot be null."); }
public void onApplicationEvent(SessionDestroyedEvent event) { handleLogout(event); }
/** * Validates the required properties are set. In addition, if * {@link #setCallbackHandlers(JaasAuthenticationCallbackHandler[])} has not been * called with valid handlers, initializes to use {@link JaasNameCallbackHandler} and * {@link JaasPasswordCallbackHandler}. */ public void afterPropertiesSet() throws Exception { Assert.hasLength(this.loginContextName, "loginContextName cannot be null or empty"); Assert.notEmpty(this.authorityGranters, "authorityGranters cannot be null or empty"); if (ObjectUtils.isEmpty(this.callbackHandlers)) { setCallbackHandlers(new JaasAuthenticationCallbackHandler[] { new JaasNameCallbackHandler(), new JaasPasswordCallbackHandler() }); } Assert.notNull(this.loginExceptionResolver, "loginExceptionResolver cannot be null"); }
LoginContext loginContext = createLoginContext( new InternalCallbackHandler(auth)); publishSuccessEvent(result); .resolveException(loginException); publishFailureEvent(request, ase); throw ase;
LoginContext loginContext = createLoginContext( new InternalCallbackHandler(auth)); publishSuccessEvent(result); .resolveException(loginException); publishFailureEvent(request, ase); throw ase;
LoginContext loginContext = createLoginContext(new InternalCallbackHandler(auth)); publishSuccessEvent(result); AuthenticationException ase = loginExceptionResolver.resolveException(loginException); publishFailureEvent(request, ase); throw ase;
@Override public void afterPropertiesSet() throws Exception { super.afterPropertiesSet(); Assert.notNull(this.configuration, "configuration cannot be null."); }
public void onApplicationEvent(SessionDestroyedEvent event) { handleLogout(event); }
/** * Validates the required properties are set. In addition, if * {@link #setCallbackHandlers(JaasAuthenticationCallbackHandler[])} has not been * called with valid handlers, initializes to use {@link JaasNameCallbackHandler} and * {@link JaasPasswordCallbackHandler}. */ public void afterPropertiesSet() throws Exception { Assert.hasLength(this.loginContextName, "loginContextName cannot be null or empty"); Assert.notEmpty(this.authorityGranters, "authorityGranters cannot be null or empty"); if (ObjectUtils.isEmpty(this.callbackHandlers)) { setCallbackHandlers(new JaasAuthenticationCallbackHandler[] { new JaasNameCallbackHandler(), new JaasPasswordCallbackHandler() }); } Assert.notNull(this.loginExceptionResolver, "loginExceptionResolver cannot be null"); }
LoginContext loginContext = createLoginContext( new InternalCallbackHandler(auth)); publishSuccessEvent(result); .resolveException(loginException); publishFailureEvent(request, ase); throw ase;
@Override public void afterPropertiesSet() throws Exception { super.afterPropertiesSet(); Assert.notNull(this.configuration, "configuration cannot be null."); }
public void onApplicationEvent(SessionDestroyedEvent event) { handleLogout(event); }
/** * Validates the required properties are set. In addition, if * {@link #setCallbackHandlers(JaasAuthenticationCallbackHandler[])} has not * been called with valid handlers, initializes to use * {@link JaasNameCallbackHandler} and {@link JaasPasswordCallbackHandler}. */ public void afterPropertiesSet() throws Exception { Assert.hasLength(loginContextName, "loginContextName cannot be null or empty"); Assert.notEmpty(authorityGranters, "authorityGranters cannot be null or empty"); if (ObjectUtils.isEmpty(callbackHandlers)) { setCallbackHandlers(new JaasAuthenticationCallbackHandler[] { new JaasNameCallbackHandler(), new JaasPasswordCallbackHandler() }); } Assert.notNull(loginExceptionResolver, "loginExceptionResolver cannot be null"); }
@Override public void afterPropertiesSet() throws Exception { super.afterPropertiesSet(); Assert.notNull(configuration, "configuration cannot be null."); }
public void onApplicationEvent(SessionDestroyedEvent event) { handleLogout(event); }
/** * Validates the required properties are set. In addition, if * {@link #setCallbackHandlers(JaasAuthenticationCallbackHandler[])} has not been * called with valid handlers, initializes to use {@link JaasNameCallbackHandler} and * {@link JaasPasswordCallbackHandler}. */ public void afterPropertiesSet() throws Exception { Assert.hasLength(this.loginContextName, "loginContextName cannot be null or empty"); Assert.notEmpty(this.authorityGranters, "authorityGranters cannot be null or empty"); if (ObjectUtils.isEmpty(this.callbackHandlers)) { setCallbackHandlers(new JaasAuthenticationCallbackHandler[] { new JaasNameCallbackHandler(), new JaasPasswordCallbackHandler() }); } Assert.notNull(this.loginExceptionResolver, "loginExceptionResolver cannot be null"); }