Interface for holding the information related to an out of band code.
Nested Class Summary
@interface | ActionCodeResult.ActionDataKey | Keys to access the account information related to an out of band code. | |
@interface | ActionCodeResult.Operation | Holds the possible operations that an out of band code can perform, which are password reset, verify email, and recover email. |
Constant Summary
int | Represents an ActionCodeResult.ActionDataKey
which is used to key calls to getData(int) . |
|
int | ERROR | Represents an ActionCodeResult.Operation
signifying that there was some error in determining what the out of band code is
for. |
int | FROM_EMAIL | Represents an ActionCodeResult.ActionDataKey
which is used to key calls to getData(int) . |
int | PASSWORD_RESET | Represents an ActionCodeResult.Operation
signifying that the out of band code was for a password reset. |
int | RECOVER_EMAIL | Represents an ActionCodeResult.Operation
signifying that the out of band code was for email recovery. |
int | SIGN_IN_WITH_EMAIL_LINK | Represents an ActionCodeResult.Operation
signifying that the out of band code was for signing in a user via an email
link. |
int | VERIFY_EMAIL | Represents an ActionCodeResult.Operation
signifying that the out of band code was for email verification. |
Public Method Summary
abstract String |
getData(int
key)
Getter for fields pertaining to the operation being performed.
|
abstract int |
getOperation()
Returns the
ActionCodeResult.Operation
for which this out of band code was intended.
|
Constants
public static final int EMAIL
Represents an ActionCodeResult.ActionDataKey
which is used to key calls to getData(int)
.
This signifies the email before the application of the out of band code.
public static final int ERROR
Represents an ActionCodeResult.Operation
signifying that there was some error in determining what the out of band code is
for.
public static final int FROM_EMAIL
Represents an ActionCodeResult.ActionDataKey
which is used to key calls to getData(int)
.
This signifies the current email associated with the account, which may have changed as
a result of the ActionCodeResult.Operation
performed.
public static final int PASSWORD_RESET
Represents an ActionCodeResult.Operation
signifying that the out of band code was for a password reset.
public static final int RECOVER_EMAIL
Represents an ActionCodeResult.Operation
signifying that the out of band code was for email recovery.
public static final int SIGN_IN_WITH_EMAIL_LINK
Represents an ActionCodeResult.Operation
signifying that the out of band code was for signing in a user via an email link.
public static final int VERIFY_EMAIL
Represents an ActionCodeResult.Operation
signifying that the out of band code was for email verification.
Public Methods
public abstract String getData (int key)
Getter for fields pertaining to the operation being performed. Keyed by
ActionCodeResult.ActionDataKey
.
public abstract int getOperation ()
Returns the ActionCodeResult.Operation
for which this out of band code was intended.