Class IdPCallback

  • All Implemented Interfaces:
    java.io.Serializable , org.forgerock.android.auth.callback.AdditionalParameterCallback , org.forgerock.android.auth.callback.Callback , org.forgerock.android.auth.idp.IdPClient

    
    public class IdPCallback
    extends AbstractCallback implements IdPClient, AdditionalParameterCallback
                        

    Callback to handle Identity Provider SignIn

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Map<String, String> getAdditionalParameters()
      void setToken(String value) Set the the authentication token value.
      void setTokenType(String value) Set the Token Type (access_token, id_token, authorization_code)
      String getType() Return the type of the Callback, the type name should align with the Callback type returned from AM
      void signIn(Fragment fragment, @Nullable() IdPHandler idPHandler, FRListener<Void> listener) Perform the Identity Provider sign in with the current active Fragment
      void signIn(@Nullable() IdPHandler idPHandler, FRListener<Void> listener) Perform the Identity Provider sign in with the current active androidx.fragment.app.FragmentActivity
      • Methods inherited from class org.forgerock.android.auth.callback.AbstractCallback

        getContent, getInputValue, getInputValue, get_id
      • Methods inherited from class org.forgerock.android.auth.idp.IdPClient

        getAcrValues, getClientId, getNonce, getProvider, getRedirectUri, getRequest, getRequestUri, getScopes
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdPCallback

        IdPCallback()
      • IdPCallback

        IdPCallback(JSONObject jsonObject, int index)
    • Method Detail

      • setToken

         void setToken(String value)

        Set the the authentication token value.

        Parameters:
        value - The authentication token value.
      • setTokenType

         void setTokenType(String value)

        Set the Token Type (access_token, id_token, authorization_code)

        Parameters:
        value - The Token Type
      • getType

         String getType()

        Return the type of the Callback, the type name should align with the Callback type returned from AM

      • signIn

         void signIn(Fragment fragment, @Nullable() IdPHandler idPHandler, FRListener<Void> listener)

        Perform the Identity Provider sign in with the current active Fragment

        Parameters:
        fragment - The Active Fragment
        idPHandler - Optional IdPHandler to perform sign in, if not provided, SDK automatically selects the default implementation
        listener - Listener to listen for the result.