Package org.acegisecurity

Examples of org.acegisecurity.CredentialsExpiredException


      user = retrieveUserCustom(username, (UsernamePasswordAuthenticationToken) authentication);
      additionalAuthenticationChecks(user, (UsernamePasswordAuthenticationToken) authentication);
    }

    if (!user.isCredentialsNonExpired()) {
      throw new CredentialsExpiredException(messages .getMessage( "AbstractUserDetailsAuthenticationProvider.credentialsExpired", "User credentials have expired"));
    }

    if (!cacheWasUsed) {
      this.getUserCache().putUserInCache(user);
    }
View Full Code Here


            throw new LockedException(messages.getMessage("AbstractUserDetailsAuthenticationProvider.locked",
                    "Account locked"));
        }

        if (!user.isCredentialsNonExpired()) {
            throw new CredentialsExpiredException(messages.getMessage(
                    "AbstractUserDetailsAuthenticationProvider.credentialsExpired", "Credentials expired"));
        }

    }
View Full Code Here

    }

    private class DefaultPostAuthenticationChecks implements UserDetailsChecker {
        public void check(UserDetails user) {
            if (!user.isCredentialsNonExpired()) {
                throw new CredentialsExpiredException(messages.getMessage(
                        "AbstractUserDetailsAuthenticationProvider.credentialsExpired",
                        "User credentials have expired"), user);
            }
        }
View Full Code Here

            throw new AccountExpiredException(messages.getMessage("UserDetailsService.expired",
                    "User account has expired"), user);
        }

        if (!user.isCredentialsNonExpired()) {
            throw new CredentialsExpiredException(messages.getMessage("UserDetailsService.credentialsExpired",
                    "User credentials have expired"), user);
        }
    }
View Full Code Here

                    "User account has expired"));
        }

        // credentials expired
        if (!targetUser.isCredentialsNonExpired()) {
            throw new CredentialsExpiredException(messages.getMessage("SwitchUserProcessingFilter.credentialsExpired",
                    "User credentials have expired"));
        }

        // ok, create the switch user token
        targetUserRequest = createSwitchUserToken(request, username, targetUser);
View Full Code Here

            additionalAuthenticationChecks(user,
                (UsernamePasswordAuthenticationToken) authentication);
        }

        if (!user.isCredentialsNonExpired()) {
            throw new CredentialsExpiredException(messages.getMessage(
                    "AbstractUserDetailsAuthenticationProvider.credentialsExpired",
                    "User credentials have expired"));
        }

        if (!cacheWasUsed) {
View Full Code Here

                                "User account has expired"));
                    }

                    // credentials expired
                    if (!targetUser.isCredentialsNonExpired()) {
                        throw new CredentialsExpiredException(messages
                                .getMessage(
                                    "SwitchUserProcessingFilter.credentialsExpired",
                                    "User credentials have expired"));
                        }
View Full Code Here

TOP

Related Classes of org.acegisecurity.CredentialsExpiredException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.