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