public abstract class OAuthCalendarSource
- Object
- CalendarSource
- 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
Inherited methods
From CalendarSource
getId, getDisplayName, isAvailable, getCapabilities, listCalendars, saveCalendar, deleteCalendar, deleteCalendar, queryEvents, getEvent, saveEvent, deleteEvent, respondToEvent, queryFreeBusy, queryTasks, getTask, saveTask, deleteTask, addChangeListener, removeChangeListener, fireChange, unsupported, unavailable, completed
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)