Package 

Class DeviceBindingCallback

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

    
    public class DeviceBindingCallback
    extends AbstractCallback implements Binding
                        

    Callback to collect the device binding information

    • Constructor Detail

      • DeviceBindingCallback

        DeviceBindingCallback()
    • Method Detail

      • getTitle

         final String getTitle()

        The title to be displayed in biometric prompt

      • getSubtitle

         final String getSubtitle()

        The subtitle to be displayed in biometric prompt

      • getTimeout

         final Integer getTimeout()

        The timeout to be to expire the biometric authentication

      • getType

         String getType()

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

      • setJws

         final Unit setJws(String value)

        Input the JWS key to the server

        Parameters:
        value - The JWS value.
      • setDeviceName

         final Unit setDeviceName(String value)

        Input the Device Name to the server

        Parameters:
        value - The device name value.
      • setDeviceId

         final Unit setDeviceId(String value)

        Input the Device Id to the server

        Parameters:
        value - The device Id.
      • setClientError

         Unit setClientError(String value)

        Input the Client Error to the server

        Parameters:
        value - DeviceBind ErrorType .
      • bind

        @JvmOverloads() Unit bind(Context context, Function1<DeviceBindingAuthenticationType, DeviceAuthenticator> deviceAuthenticator, FRListener<Void> listener)

        Bind the device. Calling the bind function, the existing bounded keys will be removed. If don't want to replace or remove existing keys, please use FRUserKeys to check existing keys before calling this method

        Parameters:
        context - The Application Context
        deviceAuthenticator - A function to return a DeviceAuthenticator, deviceAuthenticatorIdentifier will be used if not provided
        listener - The Listener to listen for the result
      • bind

        @JvmOverloads() Unit bind(Context context, FRListener<Void> listener)

        Bind the device. Calling the bind function, the existing bounded keys will be removed. If don't want to replace or remove existing keys, please use FRUserKeys to check existing keys before calling this method

        Parameters:
        context - The Application Context
        listener - The Listener to listen for the result
      • bind

         Unit bind(Context context, Function1<DeviceBindingAuthenticationType, DeviceAuthenticator> deviceAuthenticator)

        Bind the device. Calling the bind function, the existing bounded keys will be removed. If don't want to replace or remove existing keys, please use FRUserKeys to check existing keys before calling this method

        Parameters:
        context - The Application Context
        deviceAuthenticator - A function to return a DeviceAuthenticator, deviceAuthenticatorIdentifier will be used if not provided