class OAuthApiConnection extends ApiConnection {

    @Override
    public void logout() {
        consumerKey = null;
        consumerSecret = null;
        accessToken = null;
        accessSecret = null;
        username = "";
        loggedIn = false;
    }

    public  OAuthApiConnection(String apiBaseUrl,
                              String consumerKey,
                              String consumerSecret,
                              String accessToken,
                              String accessSecret);
    @JsonCreator protected  OAuthApiConnection(
            @JsonProperty("baseUrl") String apiBaseUrl,
            @JsonProperty("consumerKey") String consumerKey,
            @JsonProperty("consumerSecret") String consumerSecret,
            @JsonProperty("accessToken") String accessToken,
            @JsonProperty("accessSecret") String accessSecret,
            @JsonProperty("username") String username,
            @JsonProperty("loggedIn") boolean loggedIn,
            @JsonProperty("tokens") Map<String, String> tokens,
            @JsonProperty("connectTimeout") int connectTimeout,
            @JsonProperty("readTimeout") int readTimeout);

}