Class OrderResponse

java.lang.Object
se.swedenconnect.bankid.rpapi.types.OrderResponse

public class OrderResponse extends Object
Represents an order response, i.e., the response message received from an auth or sign request.
Author:
Martin Lindström
  • Constructor Details

    • OrderResponse

      public OrderResponse()
  • Method Details

    • getOrderReference

      public String getOrderReference()
      Returns the order reference string.
      Returns:
      the order reference
    • setOrderReference

      public void setOrderReference(String orderReference)
      Assigns the order reference string.
      Parameters:
      orderReference - the order reference
    • getAutoStartToken

      public String getAutoStartToken()
      Returns the auto start token.
      Returns:
      the auto start token
    • setAutoStartToken

      public void setAutoStartToken(String autoStartToken)
      Assigns the auto start token.
      Parameters:
      autoStartToken - the auto start token
    • getQrStartToken

      public String getQrStartToken()
      Gets the QR start token used to compute an animated QR code.

      Available for BankID RP API v5.1 and later.

      Returns:
      QR start token, or null if not available (pre v5.1)
    • setQrStartToken

      public void setQrStartToken(String qrStartToken)
      Assigns the QR start token used to compute an animated QR code.

      Available for BankID RP API v5.1 and later.

      Parameters:
      qrStartToken - the QR start token
    • getQrStartSecret

      public String getQrStartSecret()
      Gets the QR start secret string.

      Available for BankID RP API v5.1 and later.

      Returns:
      the QR start secrret, or null if not available (pre v5.1)
    • setQrStartSecret

      public void setQrStartSecret(String qrStartSecret)
      Assigns the QR start secret string.

      Available for BankID RP API v5.1 and later.

      Parameters:
      qrStartSecret - the QR start secret string
    • getOrderTime

      public Instant getOrderTime()
      Gets the orderTime property that is used when generating "animated" QR codes. The property is instantiated with the current time when the object is created.
      Returns:
      the instant when the response object was instantited
    • toString

      public String toString()
      Overrides:
      toString in class Object