Class CartOperationCheckoutProperties.GuestToken

java.lang.Object
com.broadleafcommerce.cartoperation.service.checkout.CartOperationCheckoutProperties.GuestToken
Enclosing class:
CartOperationCheckoutProperties

public static class CartOperationCheckoutProperties.GuestToken extends Object
Guest token properties.
  • Constructor Details

    • GuestToken

      public GuestToken()
  • Method Details

    • getTokenTimeout

      public Duration getTokenTimeout()
      Determines how long the guest token remains valid. The default is 1 hour. Since this field is a duration values can specify the unit: 1h for 1 hour, 1s for 1 second, etc.
    • getGeneratorType

      public String getGeneratorType()
      The type of generator to use for the guest token. The default is SECURE_RANDOM. Previously, ULID was used, but that is now deprecated as it is not cryptographically random.
      Since:
      Cart Service 3.0.0, Release Train 3.0.0
      See Also:
    • getSecureRandomEntropyBytes

      public int getSecureRandomEntropyBytes()
      The amount of entropy to use when generating the guest token. The default is 16 bytes. This only applies to CartOperationCheckoutProperties.GuestToken.GeneratorType.SECURE_RANDOM.
      Since:
      Cart Service 3.0.0, Release Train 3.0.0
    • setTokenTimeout

      public void setTokenTimeout(Duration tokenTimeout)
      Determines how long the guest token remains valid. The default is 1 hour. Since this field is a duration values can specify the unit: 1h for 1 hour, 1s for 1 second, etc.
    • setGeneratorType

      public void setGeneratorType(String generatorType)
      The type of generator to use for the guest token. The default is SECURE_RANDOM. Previously, ULID was used, but that is now deprecated as it is not cryptographically random.
      Since:
      Cart Service 3.0.0, Release Train 3.0.0
      See Also:
    • setSecureRandomEntropyBytes

      public void setSecureRandomEntropyBytes(int secureRandomEntropyBytes)
      The amount of entropy to use when generating the guest token. The default is 16 bytes. This only applies to CartOperationCheckoutProperties.GuestToken.GeneratorType.SECURE_RANDOM.
      Since:
      Cart Service 3.0.0, Release Train 3.0.0