Class GatewayTokenRequestContract


  • public final class GatewayTokenRequestContract
    extends Object
    Gateway token request contract properties.
    • Constructor Detail

      • GatewayTokenRequestContract

        public GatewayTokenRequestContract()
    • Method Detail

      • keyType

        public KeyType keyType()
        Get the keyType property: The Key to be used to generate gateway token.
        Returns:
        the keyType value.
      • withKeyType

        public GatewayTokenRequestContract withKeyType​(KeyType keyType)
        Set the keyType property: The Key to be used to generate gateway token.
        Parameters:
        keyType - the keyType value to set.
        Returns:
        the GatewayTokenRequestContract object itself.
      • expiry

        public OffsetDateTime expiry()
        Get the expiry property: The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
        Returns:
        the expiry value.
      • withExpiry

        public GatewayTokenRequestContract withExpiry​(OffsetDateTime expiry)
        Set the expiry property: The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
        Parameters:
        expiry - the expiry value to set.
        Returns:
        the GatewayTokenRequestContract object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.