Class IdPCallback

    • Constructor Detail

      • IdPCallback

        public IdPCallback​(org.json.JSONObject jsonObject,
                           int index)
      • IdPCallback

        public IdPCallback()
    • Method Detail

      • setAttribute

        protected void setAttribute​(java.lang.String name,
                                    java.lang.Object value)
        Specified by:
        setAttribute in class AbstractCallback
      • setToken

        public void setToken​(java.lang.String value)
        Set the the authentication token value.
        Parameters:
        value - The authentication token value.
      • setTokenType

        public void setTokenType​(java.lang.String value)
        Set the Token Type (access_token, id_token, authorization_code)
        Parameters:
        value - The Token Type
      • getType

        public java.lang.String getType()
        Description copied from interface: Callback
        Return the type of the Callback, the type name should align with the Callback type returned from AM
        Specified by:
        getType in interface Callback
      • signIn

        public void signIn​(androidx.fragment.app.Fragment fragment,
                           @Nullable
                           IdPHandler idPHandler,
                           FRListener<java.lang.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.
      • signIn

        public void signIn​(@Nullable
                           IdPHandler idPHandler,
                           FRListener<java.lang.Void> listener)
        Perform the Identity Provider sign in with the current active FragmentActivity
        Parameters:
        idPHandler - Optional IdPHandler to perform sign in, if not provided, SDK automatically selects the default implementation
        listener - Listener to listen for the result.
      • getIdPHandler

        protected IdPHandler getIdPHandler()
        Get the IdPHandler that handle the Identity Provider SignIn
        Returns:
        The handler to handle the sign-in.
      • getProvider

        public java.lang.String getProvider()
        Specified by:
        getProvider in interface IdPClient
      • getClientId

        public java.lang.String getClientId()
        Specified by:
        getClientId in interface IdPClient
      • getScopes

        public java.util.List<java.lang.String> getScopes()
        Specified by:
        getScopes in interface IdPClient
      • getNonce

        public java.lang.String getNonce()
        Specified by:
        getNonce in interface IdPClient
      • getAcrValues

        public java.util.List<java.lang.String> getAcrValues()
        Specified by:
        getAcrValues in interface IdPClient
      • getRequest

        public java.lang.String getRequest()
        Specified by:
        getRequest in interface IdPClient
      • getRequestUri

        public java.lang.String getRequestUri()
        Specified by:
        getRequestUri in interface IdPClient