ActionCodeUrl

public class ActionCodeUrl extends Object

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

Public Method Summary

String
getApiKey()
Returns the API key from the link.
String
getCode()
Returns the email action code from the link if present, otherwise null.
String
getContinueUrl()
Returns the continue URL from the link if present, otherwise null.
String
getLanguageCode()
Returns the language code from the link if present, otherwise null.
int
getOperation()
Returns the mapping of the mode string in the action code URL to a ActionCodeResult.Operation.
static ActionCodeUrl
parseLink(String link)
Returns an ActionCodeUrl instance if the link is valid, otherwise null.

Inherited Method Summary

Public Methods

public String getApiKey ()

Returns the API key from the link.

public String getCode ()

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

public String getContinueUrl ()

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

public String getLanguageCode ()

Returns the language code from the link if present, otherwise null.

public int getOperation ()

Returns the mapping of the mode string in the action code URL to a ActionCodeResult.Operation.

Returns an ActionCodeUrl instance if the link is valid, otherwise null.

Throws
IllegalArgumentException if link is null or empty