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

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends Object>, android.os.Parcelable.Creator<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final android.os.Parcelable.Creator<IdentityContract.LoginCredentials>
     

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    LoginCredentials(android.os.Parcel in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    A URL that can be used to authenticate the login token.
    The package name of the OpenCab identity provider.
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • LoginCredentials

      public LoginCredentials()
    • LoginCredentials

      protected LoginCredentials(android.os.Parcel in)
  • Method Details

    • setToken

      public void setToken(String token)
      An authentication token that can be used to uniquely and securely identify the driver. For more details about possible types of tokens, see IdentityContract.
      Parameters:
      token - The login token
    • setProvider

      public void setProvider(String provider)
      The package name of the OpenCab identity provider.
      Parameters:
      provider - The provider package name.
    • setAuthority

      public void setAuthority(String authority)
      A URL that can be used to authenticate the login token. For more details about how OpenCab interacts with authentication systems, see IdentityContract.
      Parameters:
      authority - The authority URL.
    • getToken

      public String getToken()
      A token that can be used to uniquely identify the driver. For more details about possible types of tokens, see IdentityContract.
      Returns:
      The login token
    • getProvider

      public String getProvider()
      The package name of the OpenCab identity provider.
      Returns:
      The provider package name.
    • getAuthority

      public String getAuthority()
      A URL that can be used to authenticate the login token. For more details about how OpenCab interacts with authentication systems, see IdentityContract.
      Returns:
      The authority url.
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable