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 Object
implements android.os.Parcelable
Object containing the login credentials.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<IdentityContract.LoginCredentials>
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
A URL that can be used to authenticate the login token.The package name of the OpenCab identity provider.getToken()
A token that can be used to uniquely identify the driver.void
setAuthority
(String authority) A URL that can be used to authenticate the login token.void
setProvider
(String provider) The package name of the OpenCab identity provider.void
An authentication token that can be used to uniquely and securely identify the driver.void
writeToParcel
(android.os.Parcel dest, int flags)
-
Field Details
-
CREATOR
-
-
Constructor Details
-
LoginCredentials
public LoginCredentials() -
LoginCredentials
protected LoginCredentials(android.os.Parcel in)
-
-
Method Details
-
setToken
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
The package name of the OpenCab identity provider.- Parameters:
provider
- The provider package name.
-
setAuthority
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
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
The package name of the OpenCab identity provider.- Returns:
- The provider package name.
-
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
-