Authorization

class Authorization(key: String, secret: String, username: String, password: String, production: Boolean, verbose: Boolean, baseUrl: String, chromium: Chromium, tokenStore: CachedTokenProvider)

Constructors

Authorization
Link copied to clipboard
fun Authorization(configuration: GlobalConfig, production: Boolean = false, verbose: Boolean = false, baseUrl: String = "https://${(if (production) "api" else "apisb")}.etrade.com", tokenStore: CachedTokenProvider = CachedToken(CachedToken.Provider.ETRADE))

Types

Companion
Link copied to clipboard
object Companion

Functions

createSession
Link copied to clipboard
fun createSession(cacheTokens: Boolean = true): Session
Session
destroySession
Link copied to clipboard
fun destroySession()
getAccessToken
Link copied to clipboard
fun getAccessToken(requestToken: AuthResponse, verifier: String): AuthResponse
getRequestToken
Link copied to clipboard
fun getRequestToken(): AuthResponse
getVerifierCode
Link copied to clipboard
fun getVerifierCode(token: String): String
renewAccessToken
Link copied to clipboard
fun renewAccessToken(requestToken: AuthResponse): Boolean
renewSession
Link copied to clipboard
fun renewSession(): Session?
revokeAccessToken
Link copied to clipboard
fun revokeAccessToken(requestToken: AuthResponse): Boolean

Properties

baseUrl
Link copied to clipboard
val baseUrl: String
chromium
Link copied to clipboard
val chromium: Chromium
key
Link copied to clipboard
val key: String
password
Link copied to clipboard
val password: String
production
Link copied to clipboard
val production: Boolean = false
secret
Link copied to clipboard
val secret: String
tokenStore
Link copied to clipboard
val tokenStore: CachedTokenProvider
username
Link copied to clipboard
val username: String
verbose
Link copied to clipboard
val verbose: Boolean = false

Sources

jvm source
Link copied to clipboard