public void init() throws Exception { Assert.notNull(this.userDetailService, "A userDetailsService must be set"); Assert.notNull(this.ticketValidator, "A ticketValidator must be set"); Assert.notNull(this.statelessTicketCache, "A statelessTicketCache must be set"); Assert.notEmpty( this.key, "A Key is required so CasAuthenticationProvider can identify tokens it previously authenticated"); if (null == userDetailChecker) { AccountStatusChecker checker = new AccountStatusChecker(); userDetailChecker = checker; } }
/** Check whether all required properties have been set. */ protected void initFilterBean() { Assert.notNull(authenticationManager, "authenticationManager must be set"); Assert.notNull(sessionRegistry, "sessionRegistry must be set"); }
/** @param userDetailsSource The UserDetailsSource to use */ public void setAuthenticationDetailsSource( AuthenticationDetailsSource<HttpServletRequest, ?> authenticationDetailsSource) { Assert.notNull(authenticationDetailsSource, "AuthenticationDetailsSource required"); this.authenticationDetailsSource = authenticationDetailsSource; }
public void init() throws Exception { Assert.notNull(cache, "cache mandatory"); }