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)
      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
    • Constructor Detail

      • LoginCredentials

        public LoginCredentials()
      • LoginCredentials

        protected LoginCredentials​(android.os.Parcel in)
    • 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, see IdentityContract.
        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, see IdentityContract.
        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, see IdentityContract.
        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, 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