Package org.opencabstandard.provider
Class IdentityContract.LoginCredentials
- java.lang.Object
-
- org.opencabstandard.provider.IdentityContract.LoginCredentials
-
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- IdentityContract
public static class IdentityContract.LoginCredentials extends java.lang.Object implements android.os.Parcelable
Object containing the login credentials.
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<IdentityContract.LoginCredentials>
CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description LoginCredentials()
protected
LoginCredentials(android.os.Parcel in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
java.lang.String
getAuthority()
A URL that can be used to authenticate the login token.java.lang.String
getProvider()
The package name of the OpenCab identity provider.java.lang.String
getToken()
A token that can be used to uniquely identify the driver.void
setAuthority(java.lang.String authority)
A URL that can be used to authenticate the login token.void
setProvider(java.lang.String provider)
The package name of the OpenCab identity provider.void
setToken(java.lang.String token)
An authentication token that can be used to uniquely and securely identify the driver.void
writeToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<IdentityContract.LoginCredentials> CREATOR
-
-
Method Detail
-
setToken
public void setToken(java.lang.String token)
An authentication token that can be used to uniquely and securely identify the driver. For more details about possible types of tokens, seeIdentityContract
.- Parameters:
token
- The login token
-
setProvider
public void setProvider(java.lang.String provider)
The package name of the OpenCab identity provider.- Parameters:
provider
- The provider package name.
-
setAuthority
public void setAuthority(java.lang.String authority)
A URL that can be used to authenticate the login token. For more details about how OpenCab interacts with authentication systems, seeIdentityContract
.- Parameters:
authority
- The authority URL.
-
getToken
public java.lang.String getToken()
A token that can be used to uniquely identify the driver. For more details about possible types of tokens, seeIdentityContract
.- Returns:
- The login token
-
getProvider
public java.lang.String getProvider()
The package name of the OpenCab identity provider.- Returns:
- The provider package name.
-
getAuthority
public java.lang.String getAuthority()
A URL that can be used to authenticate the login token. For more details about how OpenCab interacts with authentication systems, seeIdentityContract
.- Returns:
- The authority url.
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
-