class CheckmarxOAuthSupport {

	CheckmarxOAuthData extractFromJson(JSONAdapterSupport support, String json)
			throws AdapterException {
		CheckmarxOAuthData data = new CheckmarxOAuthData();
		Access rootNode = support.fetchRootNode(json);
		data.accessToken=rootNode.fetch("access_token").asText();
		data.tokenType=rootNode.fetch("token_type").asText();
		data.expiresIn=rootNode.fetch("expires_in").asLong();

		return data;
	}

}