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 | |
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 |
hashCode()
|
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.
public static final String CREDENTIALS_TYPE_CLOUD
The credentials type indicating it comes from the cloud (i.e. assistant).
public static final String CREDENTIALS_TYPE_IOS
The credentials type indicating it comes from an iOS sender.
public static final String CREDENTIALS_TYPE_WEB
The credentials type indicating it comes from a Web sender.
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.