ActionCodeUrl
public class ActionCodeUrl
A utility class to parse parameters in action code URLs from out of band email flows.
Summary
Public methods |
|
|---|---|
@NonNull String |
Returns the API key from the link. |
@Nullable String |
getCode()Returns the email action code from the link if present, otherwise null. |
@Nullable String |
Returns the continue URL from the link if present, otherwise null. |
@Nullable String |
Returns the language code from the link if present, otherwise null. |
int |
Returns the mapping of the mode string in the action code URL to a . |
static @Nullable ActionCodeUrl |
Returns an |
Public fields
Public methods
getCode
public @Nullable String getCode()
Returns the email action code from the link if present, otherwise null.
getContinueUrl
public @Nullable String getContinueUrl()
Returns the continue URL from the link if present, otherwise null.
getLanguageCode
public @Nullable String getLanguageCode()
Returns the language code from the link if present, otherwise null.
getOperation
@ActionCodeResult.Operation
public int getOperation()
Returns the mapping of the mode string in the action code URL to a .
parseLink
public static @Nullable ActionCodeUrl parseLink(@Nullable String link)
Returns an ActionCodeUrl instance if the link is valid, otherwise null.
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
if |