Class IdPCallback
- java.lang.Object
-
- org.forgerock.android.auth.callback.AbstractCallback
-
- org.forgerock.android.auth.callback.IdPCallback
-
- All Implemented Interfaces:
java.io.Serializable,AdditionalParameterCallback,Callback,IdPClient
public class IdPCallback extends AbstractCallback implements IdPClient, AdditionalParameterCallback
Callback to handle Identity Provider SignIn- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.forgerock.android.auth.callback.AbstractCallback
_id, content, VALUE
-
-
Constructor Summary
Constructors Constructor Description IdPCallback()IdPCallback(org.json.JSONObject jsonObject, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getAcrValues()java.util.Map<java.lang.String,java.lang.String>getAdditionalParameters()java.lang.StringgetClientId()protected IdPHandlergetIdPHandler()Get theIdPHandlerthat handle the Identity Provider SignInjava.lang.StringgetNonce()java.lang.StringgetProvider()java.lang.StringgetRedirectUri()java.lang.StringgetRequest()java.lang.StringgetRequestUri()java.util.List<java.lang.String>getScopes()java.lang.StringgetType()Return the type of the Callback, the type name should align with the Callback type returned from AMprotected voidsetAttribute(java.lang.String name, java.lang.Object value)voidsetToken(java.lang.String value)Set the the authentication token value.voidsetTokenType(java.lang.String value)Set the Token Type (access_token, id_token, authorization_code)voidsignIn(androidx.fragment.app.Fragment fragment, IdPHandler idPHandler, FRListener<java.lang.Void> listener)Perform the Identity Provider sign in with the current active FragmentvoidsignIn(IdPHandler idPHandler, FRListener<java.lang.Void> listener)Perform the Identity Provider sign in with the current activeFragmentActivity-
Methods inherited from class org.forgerock.android.auth.callback.AbstractCallback
get_id, getContent, getContentAsJson, getInputValue, getInputValue, getName, setContent, setValue, setValue
-
-
-
-
Method Detail
-
setAttribute
protected void setAttribute(java.lang.String name, java.lang.Object value)- Specified by:
setAttributein classAbstractCallback
-
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:CallbackReturn the type of the Callback, the type name should align with the Callback type returned from AM
-
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 FragmentidPHandler- OptionalIdPHandlerto perform sign in, if not provided, SDK automatically selects the default implementationlistener- 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 activeFragmentActivity- Parameters:
idPHandler- OptionalIdPHandlerto perform sign in, if not provided, SDK automatically selects the default implementationlistener- Listener to listen for the result.
-
getIdPHandler
protected IdPHandler getIdPHandler()
Get theIdPHandlerthat handle the Identity Provider SignIn- Returns:
- The handler to handle the sign-in.
-
getAdditionalParameters
public java.util.Map<java.lang.String,java.lang.String> getAdditionalParameters()
- Specified by:
getAdditionalParametersin interfaceAdditionalParameterCallback
-
getProvider
public java.lang.String getProvider()
- Specified by:
getProviderin interfaceIdPClient
-
getClientId
public java.lang.String getClientId()
- Specified by:
getClientIdin interfaceIdPClient
-
getRedirectUri
public java.lang.String getRedirectUri()
- Specified by:
getRedirectUriin interfaceIdPClient
-
getScopes
public java.util.List<java.lang.String> getScopes()
-
getAcrValues
public java.util.List<java.lang.String> getAcrValues()
- Specified by:
getAcrValuesin interfaceIdPClient
-
getRequest
public java.lang.String getRequest()
- Specified by:
getRequestin interfaceIdPClient
-
getRequestUri
public java.lang.String getRequestUri()
- Specified by:
getRequestUriin interfaceIdPClient
-
-