public final class MfaQRScanResult extends java.lang.Object implements IQRScanResult
MfaQRScanResult
handles registration data scanned from a QR code.Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<MfaQRScanResult> |
CREATOR |
Constructor and Description |
---|
MfaQRScanResult()
Returns a new instance of a
MfaQRScanResult object. |
MfaQRScanResult(java.lang.String code,
java.lang.String metadataUrl,
java.lang.String clientId,
java.lang.String tokenUrl)
Returns a new instance of a
MfaQRScanResult object. |
MfaQRScanResult(java.lang.String code,
java.lang.String metadataUrl,
java.lang.String clientId,
java.lang.String tokenUrl,
boolean ignoreSslCerts)
Returns a new instance of a
MfaQRScanResult object. |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Returns a bitmask indicating the set of special object types marshaled by this Parcelable
object instance.
|
java.lang.String |
getClientId()
Returns the unique identifier between the service and the app.
|
java.lang.String |
getCode()
Returns the OAuth authorization code.
|
java.lang.String |
getMetadataUrl()
Returns the metadata discovery endpoint.
|
java.lang.String |
getTokenUrl()
Returns the location to the OAuth endpoint.
|
boolean |
isIgnoreSslCerts()
The flag indicating whether to ignore SSL certificate checking.
|
MfaQRScanResult |
parse(java.lang.String value)
Parses the incoming data from the QR code.
|
void |
writeToParcel(android.os.Parcel dest,
int flags)
Writes the object into a parcel.
|
public static final android.os.Parcelable.Creator<MfaQRScanResult> CREATOR
public MfaQRScanResult()
MfaQRScanResult
object.public MfaQRScanResult(java.lang.String code, java.lang.String metadataUrl, java.lang.String clientId, java.lang.String tokenUrl)
MfaQRScanResult
object.code
- the OAuth authorization codemetadataUrl
- the metadata discovery endpointclientId
- the unique identifier between the service and the apptokenUrl
- the location to the OAuth endpointjava.lang.IllegalArgumentException
- if any parameter is nullpublic MfaQRScanResult(java.lang.String code, java.lang.String metadataUrl, java.lang.String clientId, java.lang.String tokenUrl, boolean ignoreSslCerts)
MfaQRScanResult
object.code
- the OAuth authorization codemetadataUrl
- the metadata discovery endpointclientId
- the unique identifier between the service and the apptokenUrl
- the location to the OAuth endpointignoreSslCerts
- the flag to ignore SSL certificate checkingjava.lang.IllegalArgumentException
- if any parameter is nullpublic java.lang.String getMetadataUrl()
public java.lang.String getCode()
public MfaQRScanResult parse(java.lang.String value)
parse
in interface IQRScanResult
value
- The incoming value.MfaQRScanResult
, or null if the data cannot be parsed.public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
dest
- the parcel where the object is written intoflags
- flags about how the object should be writtenpublic java.lang.String getTokenUrl()
public java.lang.String getClientId()
public boolean isIgnoreSslCerts()