Class CartOperationCheckoutProperties.GuestToken
java.lang.Object
com.broadleafcommerce.cartoperation.service.checkout.CartOperationCheckoutProperties.GuestToken
- Enclosing class:
- CartOperationCheckoutProperties
Guest token properties.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe type of generator to use for the guest token.intThe amount of entropy to use when generating the guest token.Determines how long the guest token remains valid.voidsetGeneratorType(String generatorType) The type of generator to use for the guest token.voidsetSecureRandomEntropyBytes(int secureRandomEntropyBytes) The amount of entropy to use when generating the guest token.voidsetTokenTimeout(Duration tokenTimeout) Determines how long the guest token remains valid.
-
Constructor Details
-
GuestToken
public GuestToken()
-
-
Method Details
-
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:1hfor 1 hour,1sfor 1 second, etc. -
getGeneratorType
The type of generator to use for the guest token. The default isSECURE_RANDOM. Previously,ULIDwas 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 toCartOperationCheckoutProperties.GuestToken.GeneratorType.SECURE_RANDOM.- Since:
- Cart Service 3.0.0, Release Train 3.0.0
-
setTokenTimeout
Determines how long the guest token remains valid. The default is 1 hour. Since this field is a duration values can specify the unit:1hfor 1 hour,1sfor 1 second, etc. -
setGeneratorType
The type of generator to use for the guest token. The default isSECURE_RANDOM. Previously,ULIDwas 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 toCartOperationCheckoutProperties.GuestToken.GeneratorType.SECURE_RANDOM.- Since:
- Cart Service 3.0.0, Release Train 3.0.0
-