# Class OidcCalendarTokenProvider

java.lang.Object
com.codename1.calendar.OidcCalendarTokenProvider

All Implemented Interfaces:
  `CalendarTokenProvider`

public final class OidcCalendarTokenProvider extends Object implements CalendarTokenProvider
In-memory adapter around an application-configured `OidcClient`. Updated tokens are reported to the app; this class never persists them itself.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static interface`
  `OidcCalendarTokenProvider.TokenListener`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OidcCalendarTokenProvider(OidcClient client, OidcTokens initialTokens)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AsyncResource<CalendarAuthToken>`
  `getToken(String[] scopes, boolean forceRefresh)`
  `OidcCalendarTokenProvider`
  `setTokenListener(OidcCalendarTokenProvider.TokenListener listener)`
  `void`
  `setTokens(OidcTokens value)`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### OidcCalendarTokenProvider

    public OidcCalendarTokenProvider(OidcClient client, OidcTokens initialTokens)

- ## Method Details

  - ### setTokenListener

    public OidcCalendarTokenProvider setTokenListener(OidcCalendarTokenProvider.TokenListener listener)

  - ### setTokens

    public void setTokens(OidcTokens value)

  - ### getToken

    public AsyncResource<CalendarAuthToken> getToken(String[] scopes, boolean forceRefresh)
    Specified by:
      `getToken` in interface `CalendarTokenProvider`