Class 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.
    • Nested Class Summary

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

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

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<IdentityContract.LoginCredentials> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • 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)
      A token that can be used to uniquely 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
    • Constructor Detail

      • LoginCredentials

        public LoginCredentials()
      • LoginCredentials

        protected LoginCredentials​(android.os.Parcel in)
    • Method Detail

      • setToken

        public void setToken​(java.lang.String token)
        A token that can be used to uniquely identify the driver.
        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.
        Parameters:
        authority - The authority url.
      • getToken

        public java.lang.String getToken()
        A token that can be used to uniquely identify the driver.
        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.
        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