tock / ai.tock.bot.connector.teams.token / TokenHandler

# TokenHandler

`class TokenHandler` (source)

Handle the generation and the refresh of the token header This token is mandatory in request from bot to teams via microsoft-api

### Constructors

#### <init> | Handle the generation and the refresh of the token header This token is mandatory in request from bot to teams via microsoft-api `TokenHandler(appId: String, password: String)`

### Properties

#### loginApi | `var loginApi: LoginMicrosoftOnline`
#### teamsMapper | `val teamsMapper: ObjectMapper`
#### token | `var token: String?`

### Functions

#### checkToken | `fun checkToken(): Unit`
#### isTokenExpired | `fun isTokenExpired(): Boolean`
#### launchTokenCollector | `fun launchTokenCollector(connectorId: String, msInterval: Long = 60 * 60 * 1000L): Unit`
#### stopTokenCollector | `fun stopTokenCollector(): Unit`