Class QRCallbackBuilder


  • public class QRCallbackBuilder
    extends Object
    Builder class to assist in the creation of a QR code callback.
    • Constructor Detail

      • QRCallbackBuilder

        public QRCallbackBuilder()
    • Method Detail

      • build

        public Callback build()
        Builds the callback from the provided information.
        Returns:
        a new Callback Object for presenting a QR code.
      • withCallbackIndex

        public QRCallbackBuilder withCallbackIndex​(int index)
        Set the callback index to assign to the callback.
        Parameters:
        index - the new callback index
        Returns:
        this QRCallbackBuilder
      • withUriScheme

        public QRCallbackBuilder withUriScheme​(String scheme)
        Set the uri scheme to use for the QR callback.
        Parameters:
        scheme - the scheme to use in the QR callback uri
        Returns:
        this QRCallbackBuilder
      • withUriPort

        public QRCallbackBuilder withUriPort​(String port)
        Set the port to use in the uri for the QR code callback.
        Parameters:
        port - the port to use in the uri
        Returns:
        this QRCallbackBuilder
      • addUriQueryComponent

        public QRCallbackBuilder addUriQueryComponent​(String key,
                                                      String value)
        Add a query component to use in the QR Callback URI.
        Parameters:
        key - the key of the query object
        value - the value of the query object
        Returns:
        this QRCallbackBuilder