public AuthTokenObject getAccessToken(String verifier) { try { this.provider.retrieveAccessToken(this.consumer, verifier); } catch (OAuthMessageSignerException e) { e .printStackTrace(); // To change body of catch statement use File | Settings | File // Templates. } catch (OAuthNotAuthorizedException e) { e .printStackTrace(); // To change body of catch statement use File | Settings | File // Templates. } catch (OAuthExpectationFailedException e) { e .printStackTrace(); // To change body of catch statement use File | Settings | File // Templates. } catch (OAuthCommunicationException e) { e .printStackTrace(); // To change body of catch statement use File | Settings | File // Templates. } AuthTokenObject access = new AuthTokenObject(); access.tokenKey = this.consumer.getToken(); access.tokenSecret = this.consumer.getTokenSecret(); return access; }
public AuthTokenObject getRequestTokens() { AuthTokenObject request = new AuthTokenObject(); request.tokenKey = this.requestKey; request.tokenSecret = this.requestSecret; return request; }