Class DeviceRetrievalHelper.Builder

    • Method Detail

      • useForwardEngagement

        @NonNull
        public DeviceRetrievalHelper.Builder useForwardEngagement​(@NonNull
                                                                  DataTransport transport,
                                                                  @NonNull
                                                                  byte[] deviceEngagement,
                                                                  @NonNull
                                                                  byte[] handover)
        Configures the helper to use normal engagement.

        Applications can use this together with QrEngagementHelper and NfcEngagementHelper.

        Parameters:
        transport - the transport the mdoc reader used to connect with.
        deviceEngagement - the bytes of the DeviceEngagement CBOR.
        handover - the bytes of the Handover CBOR.
        Returns:
        the builder.
      • addAlternateForwardEngagement

        @NonNull
        public DeviceRetrievalHelper.Builder addAlternateForwardEngagement​(@Nullable
                                                                           byte[] deviceEngagement,
                                                                           @Nullable
                                                                           byte[] handover)
        Tells the helper about secondary/alternate engagement mechanisms.

        This is useful if using multiple forward engagement mechanisms at the same time, for example QR and NFC.

        Parameters:
        deviceEngagement - the bytes of the DeviceEngagement CBOR.
        handover - the bytes of the Handover CBOR.
        Returns:
        the builder
      • useReverseEngagement

        @NonNull
        public DeviceRetrievalHelper.Builder useReverseEngagement​(@NonNull
                                                                  DataTransport transport,
                                                                  @Nullable
                                                                  byte[] readerEngagement,
                                                                  java.util.List<OriginInfo> originInfos)
        Configures the helper to use reverse engagement.
        Parameters:
        transport - the transport to use.
        readerEngagement - the bytes of the ReaderEngagement CBOR.
        originInfos - a set of origin infos describing how reader engagement was obtained.
        Returns:
        the builder.