# Class CalendarAuthToken

java.lang.Object
com.codename1.calendar.CalendarAuthToken

public final class CalendarAuthToken extends Object
App-owned OAuth bearer token returned to an online source.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CalendarAuthToken(String accessToken, Instant expiresAt, String scopes)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getAccessToken()`
  `Instant`
  `getExpiresAt()`
  `String`
  `getScopes()`
  `boolean`
  `isExpiringWithin(Duration duration)`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### CalendarAuthToken

    public CalendarAuthToken(String accessToken, Instant expiresAt, String scopes)

- ## Method Details

  - ### getAccessToken

    public String getAccessToken()

  - ### getExpiresAt

    public Instant getExpiresAt()

  - ### getScopes

    public String getScopes()

  - ### isExpiringWithin

    public boolean isExpiringWithin(Duration duration)