Class TransientKeyRequest

java.lang.Object
com.blockchyp.client.dto.TransientKeyRequest
All Implemented Interfaces:
ITimeoutRequest

public class TransientKeyRequest extends Object implements ITimeoutRequest
Models a request for short-lived API credentials.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the request timeout in seconds.
    boolean
    Gets restricts the returned credentials to a single API call when true.
    boolean
    Gets whether or not to route transaction to the test gateway.
    void
    setOneTime(boolean value)
    Sets restricts the returned credentials to a single API call when true.
    void
    setTest(boolean value)
    Sets whether or not to route transaction to the test gateway.
    void
    setTimeout(int value)
    Sets the request timeout in seconds.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TransientKeyRequest

      public TransientKeyRequest()
  • Method Details

    • setTimeout

      public void setTimeout(int value)
      Sets the request timeout in seconds.
      Parameters:
      value - the request timeout in seconds.
    • getTimeout

      public int getTimeout()
      Gets the request timeout in seconds.
      Specified by:
      getTimeout in interface ITimeoutRequest
      Returns:
      the request timeout in seconds.
    • setTest

      public void setTest(boolean value)
      Sets whether or not to route transaction to the test gateway.
      Parameters:
      value - whether or not to route transaction to the test gateway.
    • isTest

      public boolean isTest()
      Gets whether or not to route transaction to the test gateway.
      Specified by:
      isTest in interface ITimeoutRequest
      Returns:
      whether or not to route transaction to the test gateway.
    • setOneTime

      public void setOneTime(boolean value)
      Sets restricts the returned credentials to a single API call when true.
      Parameters:
      value - restricts the returned credentials to a single API call when true.
    • isOneTime

      public boolean isOneTime()
      Gets restricts the returned credentials to a single API call when true.
      Returns:
      restricts the returned credentials to a single API call when true.