AuthTabSessionToken


@ExperimentalAuthTab
public class AuthTabSessionToken


Wrapper class that can be used as a unique identifier for a session. Also contains an accessor for the AuthTabCallback for the session if there was any.

Summary

Public methods

equals

public boolean equals(Object o)

getCallback

Added in 1.9.0-alpha01
public @Nullable AuthTabCallback getCallback()
Returns
@Nullable AuthTabCallback

AuthTabCallback corresponding to this session if there was any non-null callbacks passed by the client.

getId

Added in 1.9.0-alpha01
public @Nullable PendingIntent getId()
Returns
@Nullable PendingIntent

The session id corresponding to this session, null if there is none.

getSessionTokenFromIntent

Added in 1.9.0-alpha01
public static @Nullable AuthTabSessionToken getSessionTokenFromIntent(@NonNull Intent intent)

Obtain an AuthTabSessionToken from an intent. See AuthTabIntent.Builder for ways to generate an intent for Auth Tabs.

Parameters
@NonNull Intent intent

The intent to generate the token from. This has to include an extra for EXTRA_SESSION.

Returns
@Nullable AuthTabSessionToken

The token that was generated.

hasId

Added in 1.9.0-alpha01
public boolean hasId()
Returns
boolean

Whether this token is associated with a session id.

hashCode

public int hashCode()

isAssociatedWith

Added in 1.9.0-alpha01
public boolean isAssociatedWith(@NonNull AuthTabSession session)
Returns
boolean

Whether this token is associated with the given session.