public class BanafoServiceState
extends java.lang.Object
Constructor and Description |
---|
BanafoServiceState(long handle)
Constructor storing the pointer/address to the underlying native object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
accessToken()
The new Banafo Service Access Token
Contains the new access token that is going to be used for requests if the new state is BanafoServicestateType::Authorized.
|
protected void |
finalize()
Ensures the underlying native object destruction
|
long |
handle()
Gets the pointer/address to the underlying native object
|
int |
networkErrorCode()
The network error code
Contains the network error code if the new state is BanafoServicestateType::NetworkError.
|
java.lang.String |
reason()
HTTP failure reason.
|
java.lang.String |
refreshToken()
The new Banafo Service Refresh Token
Contains the new refresh token that is going to be used for requests if the new state is
BanafoServicestateType::Authorized.
|
BanafoServiceErrorType |
serviceErrorType()
The Banafo Service error
Contains the Banafo error code if the new state is BanafoServicestateType::Error.
|
BanafoServiceStateType |
state()
The Banafo Service state
Indicates the new state in which the Banafo Service has transitioned into.
|
java.lang.String |
userCode()
The user code for Authorizing the Banafo Service verification
Contains the new user code that has to be displayed to the end user if the new state is
BanafoServicestateType::VerifyingAuthorizing.
|
java.lang.String |
verificationURI()
The URI for verifying the new device
Contains the URI where the end user have to visit to be able to verify the new device if
the new state is BanafoServicestateType::VerifyingAuthorizing.
|
public BanafoServiceState(long handle)
handle
- Pointer/address to the underlying native objectpublic long handle()
protected void finalize()
finalize
in class java.lang.Object
public BanafoServiceStateType state()
BanafoServiceStateType
public int networkErrorCode()
state
public BanafoServiceErrorType serviceErrorType()
state
public java.lang.String reason()
public java.lang.String accessToken()
state
public java.lang.String refreshToken()
state
public java.lang.String userCode()
state
public java.lang.String verificationURI()
state