Package org.springframework.social

Examples of org.springframework.social.RevokedAuthorizationException


  private void handleInvalidAccessToken(String message) {
    if (message.contains("Session has expired at unix time")) {
      throw new ExpiredAuthorizationException("facebook");
    } else if (message.contains("The session has been invalidated because the user has changed the password.")) {
      throw new RevokedAuthorizationException("facebook", message);
    } else if (message.contains("The session is invalid because the user logged out.")) {
      throw new RevokedAuthorizationException("facebook", message);
    } else if (message.contains("The session was invalidated explicitly using an API call.")) {
      throw new RevokedAuthorizationException("facebook", message);
    } else if (message.contains("Session does not match current stored session.")) {
      throw new RevokedAuthorizationException("facebook", message);
    } else {
      throw new InvalidAuthorizationException("facebook", message);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.social.RevokedAuthorizationException

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.