ActionCodeUrl

public class ActionCodeUrl


A utility class to parse parameters in action code URLs from out of band email flows.

Summary

Public fields

final String
final String
final @Nullable String
final @Nullable String

Public methods

@NonNull String

Returns the API key from the link.

@Nullable String

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 ActionCodeUrl instance if the link is valid, otherwise null.

Public fields

apiKey

public final String apiKey

code

public final String code

continueUrl

public final @Nullable String continueUrl

languageCode

public final @Nullable String languageCode

Public methods

getApiKey

public @NonNull String getApiKey()

Returns the API key from the link.

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 link is null or empty