Class ApiKeyRotateParams.Builder

java.lang.Object
com.stripe.param.v2.iam.ApiKeyRotateParams.Builder
Enclosing class:
ApiKeyRotateParams

public static class ApiKeyRotateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public ApiKeyRotateParams build()
      Finalize and obtain parameter instance from this builder.
    • setExpireCurrentKeyInMinutes

      public ApiKeyRotateParams.Builder setExpireCurrentKeyInMinutes(Long expireCurrentKeyInMinutes)
      Duration in minutes before the current key expires, with a maximum of 7 days (10080 minutes). If not provided, the current key expires immediately.
    • putExtraParam

      public ApiKeyRotateParams.Builder putExtraParam(String key, Object value)
      Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See ApiKeyRotateParams.extraParams for the field documentation.
    • putAllExtraParam

      public ApiKeyRotateParams.Builder putAllExtraParam(Map<String,Object> map)
      Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See ApiKeyRotateParams.extraParams for the field documentation.
    • setPublicKey

      Public key for encrypting the new API key secret. This must a PEM-formatted RSA key suitable for encryption, >= 2048 bits. A public key is required when rotating secret keys. Publishable keys are not encrypted and a public key should not be included.