OAuthTokenData

com.github.cloudfiles.core.http.auth.OAuthTokenData
See theOAuthTokenData companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromJson(json: String, defaultRefreshToken: String): Try[OAuthTokenData]

Parses the JSON response of a token request and extracts the token values from it. The response must contain a property for the access token; the refresh token is optional - if it is missing, the passed in refresh token is used instead.

Parses the JSON response of a token request and extracts the token values from it. The response must contain a property for the access token; the refresh token is optional - if it is missing, the passed in refresh token is used instead.

Value parameters

defaultRefreshToken

the default refresh token

json

the JSON response string to be parsed

Attributes

Returns

a ''Try'' with the extracted ''OAuthTokenData''