public abstract class OAuthCalendarSource

  1. Object
  2. CalendarSource
  3. OAuthCalendarSource

Known subtypesGoogleCalendarSource, MicrosoftCalendarSource

Shared authenticated HTTP behavior for online calendar sources. Tokens and credentials remain app-owned; the source only asks for a token when needed.

Constructors

protected OAuthCalendarSource(String id, String displayName, CalendarTokenProvider tokenProvider, CalendarHttpTransport transport, String[] scopes)

Methods

public synchronized CalendarAuthorizationStatus getAuthorizationStatus(CalendarAccess access)
public AsyncResource<CalendarAuthorizationStatus> requestAuthorization(CalendarAccess access)
protected final AsyncResource<Map<String, Object>> json(String method, String url, Map<String, Object> body, Map<String, String> headers)
protected final AsyncResource<CalendarHttpResponse> raw(String method, String url, String body, String contentType, Map<String, String> headers)

Inherited methods

Constructor details

OAuthCalendarSource

protected OAuthCalendarSource(String id, String displayName, CalendarTokenProvider tokenProvider, CalendarHttpTransport transport, String[] scopes)

Method details

getAuthorizationStatus

public synchronized CalendarAuthorizationStatus getAuthorizationStatus(CalendarAccess access)

requestAuthorization

public AsyncResource<CalendarAuthorizationStatus> requestAuthorization(CalendarAccess access)

json

protected final AsyncResource<Map<String, Object>> json(String method, String url, Map<String, Object> body, Map<String, String> headers)

raw

protected final AsyncResource<CalendarHttpResponse> raw(String method, String url, String body, String contentType, Map<String, String> headers)