public class VerificationData
Encapsulates all information pieces to verify a newly created identity. The pieces of information depends on the authentication method associated to the identity to verify.
Constructor and Description |
---|
VerificationData(OnAuth.AuthResponse auth,
java.lang.String password)
Builds a
class VerificationData instance based on a one time verification code. |
VerificationData(java.lang.String token)
Builds a token-based
class VerificationData instance, to verify an identity with a permanent password (email-
or phone- based identity). |
Modifier and Type | Method and Description |
---|---|
OnAuth.Identity |
getAuth() |
java.lang.String |
getPassword() |
java.lang.String |
getToken() |
public VerificationData(@NotNull OnAuth.AuthResponse auth, @NotNull java.lang.String password)
Builds a class VerificationData
instance based on a one time verification code.
auth
- Details of the identity to verify, as returned by theWebcom.addIdentity
methodpassword
- The one time verification code sent to the user by SMSclass VerificationData
public VerificationData(@NotNull java.lang.String token)
Builds a token-based class VerificationData
instance, to verify an identity with a permanent password (email-
or phone- based identity).
token
- The verification token sent to the user by emailclass VerificationData
@Nullable public java.lang.String getToken()
@Nullable public OnAuth.Identity getAuth()
@Nullable public java.lang.String getPassword()