Package org.springframework.security

Examples of org.springframework.security.LockedException


     */
    public Authentication authenticate(Authentication authentication) throws AuthenticationException {
        if( authentication == BAD_CREDENTIALS ) {
            throw new BadCredentialsException( "Bad credentials" );
        } else if( authentication == LOCKED ) {
            throw new LockedException( "Account is locked" );
        }
        return authentication;
    }
View Full Code Here

TOP

Related Classes of org.springframework.security.LockedException

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.