JWTAuthenticator

class JWTAuthenticator : Authenticator

A JSON Web Token (JWT) based authentication strategy is to be used to authenticate a user on Cisco Webex.

Since

0.1

Constructors

Link copied to clipboard
fun JWTAuthenticator()

Functions

Link copied to clipboard
fun authorize(jwt: String, handler: CompletionHandler<Void>)

Sets the JWT access token on the authorization strategy, overriting any existing access token. JWT access token should contain the exp field to pass validation.

Link copied to clipboard
open override fun deauthorize(handler: CompletionHandler<Void>?)

Deauthorizes the current user and clears any persistent state with regards to the current user. If the com.ciscowebex.androidsdk.phone.Phone is registered, it should be deregistered before calling this method.

Link copied to clipboard
fun getExpiration(): Date?

Returns the expiry date of the access token.

Link copied to clipboard
open override fun getToken(handler: CompletionHandler<String?>)

Returns an access token of this authenticator.

Link copied to clipboard
open override fun isAuthorized(): Boolean

Returns True if the user is logically authorized.

Link copied to clipboard
fun refreshToken(handler: CompletionHandler<String?>)

Refresh an access token of this authenticator.