DeviceMetaData
Stay organized with collections
Save and categorize content based on your preferences.
Contains meta information like source device auth info and whether an authenticator is
allowed to throw challenge.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Public Method Summary
long |
|
boolean |
isChallengeAllowed()
Returns if the calling authenticator is allowed to challenge on the device this
call is made.
|
boolean |
isLockScreenSolved()
Returns whether the lock screen was solved by user prior to starting the
account transfer flow.
|
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
From interface android.os.Parcelable
abstract int |
describeContents()
|
abstract void |
writeToParcel( Parcel arg0,
int arg1)
|
Public Methods
public long getMinAgeOfLockScreen ()
Returns the duration since the lock screen was setup.
Note that this is best effort only and there is no guarantee on the correctness of
this information. The actual age of the lock screen is expected to be equal or more
than the value returned here.
public boolean isChallengeAllowed ()
Returns if the calling authenticator is allowed to challenge on the device this call
is made.
public boolean isLockScreenSolved ()
Returns whether the lock screen was solved by user prior to starting the account
transfer flow.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`DeviceMetaData` stores information about the device involved in an account transfer, such as lock screen details and authenticator permissions."],["It includes methods to check the duration since lock screen setup, if challenges are allowed, and if the lock screen was recently unlocked."],["This class implements `Parcelable`, enabling it to be passed between components within the Android system."]]],["`DeviceMetaData` class stores device meta information, including source device authentication details and authenticator challenge permissions. Key actions involve retrieving the lock screen's age via `getMinAgeOfLockScreen()`, checking if the authenticator can challenge using `isChallengeAllowed()`, and determining if the user solved the lock screen before account transfer with `isLockScreenSolved()`. It also implements the `Parcelable` interface methods: `describeContents()` and `writeToParcel()`. The lock screen age is best effort, and other inherited methods are available from `Object` class.\n"]]