Package org.springframework.security

Examples of org.springframework.security.AuthenticationServiceException


        return new FacebookAuthenticationToken(userDetails.getAuthorities(),
            token.getUserId(), token.getSessionKey());
      case failure:
        throw new BadCredentialsException("Log in failed - identity could not be verified");
      case error:
        throw new AuthenticationServiceException("Error message from server: " + token.getErrorMessage());
    }

    // unreachable
    return null;
  }
View Full Code Here


                return new FacebookAuthenticationToken(userDetails.getAuthorities(),
                        token.getUserId(), token.getSessionKey());
            case failure:
                throw new BadCredentialsException("Log in failed - identity could not be verified");
            case error:
                throw new AuthenticationServiceException("Error message from server: " + token.getErrorMessage());
        }

        // unreachable
        return null;
    }
View Full Code Here

    for ( GrantedAuthority authority : authenticate.getAuthorities() ) {
      if ( authority.getAuthority().equals( authenticatedRole ) ) {
        return authenticate;
      }
    }
    throw new AuthenticationServiceException( "The user doesn't have '" + authenticatedRole + "' role." );
  }
View Full Code Here

TOP

Related Classes of org.springframework.security.AuthenticationServiceException

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.