Package com.stripe.param.v2.iam
Class ApiKeyRotateParams.Builder
java.lang.Object
com.stripe.param.v2.iam.ApiKeyRotateParams.Builder
- Enclosing class:
- ApiKeyRotateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.setExpireCurrentKeyInMinutes(Long expireCurrentKeyInMinutes) Duration in minutes before the current key expires, with a maximum of 7 days (10080 minutes).setPublicKey(ApiKeyRotateParams.PublicKey publicKey) Public key for encrypting the new API key secret.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setExpireCurrentKeyInMinutes
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
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. SeeApiKeyRotateParams.extraParamsfor the field documentation. -
putAllExtraParam
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. SeeApiKeyRotateParams.extraParamsfor 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.
-