Google is committed to advancing racial equity for Black communities. See how.

CredentialsData

public class CredentialsData extends Object
implements Parcelable

Credentials data used to identify the credentials of the sender.

Nested Class Summary

class CredentialsData.Builder Builder for CredentialsData

Constant Summary

String CREDENTIALS_TYPE_ANDROID The credentials type indicating it comes from an Android sender.
String CREDENTIALS_TYPE_CLOUD The credentials type indicating it comes from the cloud (i.e.
String CREDENTIALS_TYPE_IOS The credentials type indicating it comes from an iOS sender.
String CREDENTIALS_TYPE_WEB The credentials type indicating it comes from a Web sender.

Inherited Constant Summary

Public Method Summary

boolean
equals(Object other)
String
getCredentials()
Returns the application-specific blob which identifies and possibly authenticates the user that's requesting to launch or join an receiver app.
String
getCredentialsType()
Returns the type of the credentials.
int
void
writeToParcel(Parcel out, int flags)

Inherited Method Summary

Constants

public static final String CREDENTIALS_TYPE_ANDROID

The credentials type indicating it comes from an Android sender.

Constant Value: "android"

public static final String CREDENTIALS_TYPE_CLOUD

The credentials type indicating it comes from the cloud (i.e. assistant).

Constant Value: "cloud"

public static final String CREDENTIALS_TYPE_IOS

The credentials type indicating it comes from an iOS sender.

Constant Value: "ios"

public static final String CREDENTIALS_TYPE_WEB

The credentials type indicating it comes from a Web sender.

Constant Value: "web"

Public Methods

public boolean equals (Object other)

public String getCredentials ()

Returns the application-specific blob which identifies and possibly authenticates the user that's requesting to launch or join an receiver app. This field may be null.

For requests sent from Assistant, it is an OAuth 2 token.

For requests sent from mobile senders, it is set by sender apps.

public String getCredentialsType ()

Returns the type of the credentials. This field may be null.

This could be one of the CREDENTIALS_TYPE_* constants or custom-defined.

public int hashCode ()

public void writeToParcel (Parcel out, int flags)