C# Class Box.V2.Auth.Token.TokenExchange

Logic for token exchange.
Show file Open project: box/box-windows-sdk-v2 Class Usage Examples

Protected Properties

Property Type Description
actorToken string
resourceUrl string
scope string
token string

Public Methods

Method Description
Exchange ( ) : string

Get a down scoped token.

SetActorToken ( string actorToken ) : void

Set actor token.

SetResource ( string resourceUrl ) : void

Set resource.

TokenExchange ( string token, string scope ) : Box.V2.Config

Initializes a new instance of the TokenExchange class.

Method Details

Exchange() public method

Get a down scoped token.
public Exchange ( ) : string
return string

SetActorToken() public method

Set actor token.
public SetActorToken ( string actorToken ) : void
actorToken string The actor user token.
return void

SetResource() public method

Set resource.
public SetResource ( string resourceUrl ) : void
resourceUrl string The resource url.
return void

TokenExchange() public method

Initializes a new instance of the TokenExchange class.
public TokenExchange ( string token, string scope ) : Box.V2.Config
token string The access token.
scope string The scope to be limited to.
return Box.V2.Config

Property Details

actorToken protected property

protected string actorToken
return string

resourceUrl protected property

protected string resourceUrl
return string

scope protected property

protected string scope
return string

token protected property

protected string token
return string