-
- 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
-
-
Field Summary
Fields Modifier and Type Field Description public final Map<String, String>additionalParameters
-
Constructor Summary
Constructors Constructor Description IdPCallback(JSONObject jsonObject, int index)
-
Method Summary
Modifier and Type Method Description Map<String, String>getAdditionalParameters()voidsetToken(String value)Set the the authentication token value. voidsetTokenType(String value)Set the Token Type (access_token, id_token, authorization_code) StringgetType()Return the type of the Callback, the type name should align with the Callback type returned from AM voidsignIn(Fragment fragment, @Nullable() IdPHandler idPHandler, FRListener<Void> listener)Perform the Identity Provider sign in with the current active Fragment voidsignIn(@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(JSONObject jsonObject, int index)
-
-
Method Detail
-
getAdditionalParameters
Map<String, String> getAdditionalParameters()
-
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 FragmentidPHandler- Optional IdPHandler to perform sign in, if not provided, SDK automatically selects the default implementationlistener- Listener to listen for the result.
-
signIn
void signIn(@Nullable() IdPHandler idPHandler, FRListener<Void> listener)
Perform the Identity Provider sign in with the current active androidx.fragment.app.FragmentActivity
- Parameters:
idPHandler- Optional IdPHandler to perform sign in, if not provided, SDK automatically selects the default implementationlistener- Listener to listen for the result.
-
-
-
-