public class AndroidSafetynetAttestation extends Object implements Attestation
SafetyNet is a set of Google Play Services API’s, that are helpful for defence against security threats on Android, such as device tampering, bad URLs, malicious apps, and fake user accounts. Main solutions that SafetyNet provides are device attestation, safe browsing, re-captcha and app check APIs.
| Constructor and Description |
|---|
AndroidSafetynetAttestation() |
| Modifier and Type | Method and Description |
|---|---|
String |
fmt()
The unique identifier for the attestation
|
void |
validate(WebAuthnOptions options,
MetaData metadata,
byte[] clientDataJSON,
JsonObject attestation,
AuthData authData)
The implementation of the Attestation verification.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithash, parseX5c, verifySignaturepublic String fmt()
Attestationfmt in interface Attestationpublic void validate(WebAuthnOptions options, MetaData metadata, byte[] clientDataJSON, JsonObject attestation, AuthData authData) throws AttestationException
Attestationvalidate in interface Attestationoptions - the runtime configuration optionsmetadata - the Metadata holder to perform MDS queriesclientDataJSON - the binary client data jsonattestation - the JSON representation of the attestationauthData - the authenticator dataAttestationException - if the validation failsCopyright © 2021. All rights reserved.