-
public final class RadarVerifiedLocationTokenRepresents a user's verified location.
-
-
Field Summary
Fields Modifier and Type Field Description private final RadarUseruserprivate final Array<RadarEvent>eventsprivate final Stringtokenprivate final DateexpiresAtprivate final IntegerexpiresInprivate final Booleanpassedprivate final Array<String>failureReasonsprivate final String_idprivate final JSONObjectfullJson
-
Constructor Summary
Constructors Constructor Description RadarVerifiedLocationToken(RadarUser user, Array<RadarEvent> events, String token, Date expiresAt, Integer expiresIn, Boolean passed, Array<String> failureReasons, String _id, JSONObject fullJson)
-
Method Summary
Modifier and Type Method Description final RadarUsergetUser()The user. final Array<RadarEvent>getEvents()An array of events. final StringgetToken()A signed JSON Web Token (JWT) containing the user and array of events. final DategetExpiresAt()The datetime when the token expires. final IntegergetExpiresIn()The number of seconds until the token expires. final BooleangetPassed()A boolean indicating whether the user passed all jurisdiction and fraud detection checks. final Array<String>getFailureReasons()An array of failure reasons for jurisdiction and fraud detection checks. final Stringget_id()The Radar ID of the location check. final JSONObjectgetFullJson()The full JSON value of the token. final JSONObjecttoJson()-
-
Method Detail
-
getEvents
final Array<RadarEvent> getEvents()
An array of events.
-
getToken
final String getToken()
A signed JSON Web Token (JWT) containing the user and array of events. Verify the token server-side using your secret key.
-
getExpiresAt
final Date getExpiresAt()
The datetime when the token expires.
-
getExpiresIn
final Integer getExpiresIn()
The number of seconds until the token expires.
-
getPassed
final Boolean getPassed()
A boolean indicating whether the user passed all jurisdiction and fraud detection checks.
-
getFailureReasons
final Array<String> getFailureReasons()
An array of failure reasons for jurisdiction and fraud detection checks.
-
getFullJson
final JSONObject getFullJson()
The full JSON value of the token.
-
toJson
final JSONObject toJson()
-
-
-
-