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;
   }
 }
Exemplo n.º 2
0
 /** 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");
 }
Exemplo n.º 3
0
 /** @param userDetailsSource The UserDetailsSource to use */
 public void setAuthenticationDetailsSource(
     AuthenticationDetailsSource<HttpServletRequest, ?> authenticationDetailsSource) {
   Assert.notNull(authenticationDetailsSource, "AuthenticationDetailsSource required");
   this.authenticationDetailsSource = authenticationDetailsSource;
 }
Exemplo n.º 4
0
 public void init() throws Exception {
   Assert.notNull(cache, "cache mandatory");
 }