public class AuthorizationData extends java.lang.Object implements ApiElement
String
, multifactor auth type
and whether multifactor is required for the account.
mfa
by the Robinhood Api. (Robinhood calls it Two-Factor, but the
Api calls it multifactor...).Modifier and Type | Class and Description |
---|---|
static class |
AuthorizationData.MultifactorType
A wrapper for the types of multifactor authorizations.
|
static class |
AuthorizationData.Token
A wrapper for deserializing token strings from Robinhood
|
Constructor and Description |
---|
AuthorizationData() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMfaCode() |
AuthorizationData.MultifactorType |
getMfaType() |
java.lang.String |
getToken() |
boolean |
mfaRequired() |
void |
setMfaCode(java.lang.String mfaCode) |
void |
setToken(AuthorizationData.Token newToken)
Set the token used to authorize private ApiMethods.
|
void |
setToken(java.lang.String newToken)
Set the token used to authorize private ApiMethods.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
requiresAuth
public java.lang.String getToken()
public void setToken(java.lang.String newToken)
newToken
- The new tokenpublic void setToken(AuthorizationData.Token newToken)
newToken
- The new tokenpublic void setMfaCode(java.lang.String mfaCode)
mfaCode
- The new multifactor authorization codepublic java.lang.String getMfaCode()
public boolean mfaRequired()
public AuthorizationData.MultifactorType getMfaType()
AuthorizationData.MultifactorType
needed to loginpublic java.lang.String toString()
toString
in class java.lang.Object