ActionCodeUrl

public classActionCodeUrl


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

Summary

Public methods

@NonNullString

Returns the API key from the link.

@NullableString

Returns the email action code from the link if present, otherwise null.

@NullableString

Returns the continue URL from the link if present, otherwise null.

@NullableString

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 @NullableActionCodeUrl

Returns anActionCodeUrl instance if thelink is valid, otherwise null.

Public fields

apiKey

public final String apiKey

code

public final String code

continueUrl

public final @NullableString continueUrl

languageCode

public final @NullableString languageCode

Public methods

getApiKey

public @NonNullString getApiKey()

Returns the API key from the link.

getCode

public @NullableString getCode()

Returns the email action code from the link if present, otherwise null.

getContinueUrl

public @NullableString getContinueUrl()

Returns the continue URL from the link if present, otherwise null.

getLanguageCode

public @NullableString 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 @NullableActionCodeUrl parseLink(@NullableString link)

Returns anActionCodeUrl instance if thelink is valid, otherwise null.

Throws
java.lang.IllegalArgumentException

iflink is null or empty

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.