File: TotpCreateKeyRequest.md

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (40 lines) | stat: -rw-r--r-- 2,272 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# OpenbaoClient::TotpCreateKeyRequest

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **account_name** | **String** | The name of the account associated with the key. Required if generate is true. | [optional] |
| **algorithm** | **String** | The hashing algorithm used to generate the TOTP token. Options include SHA1, SHA256 and SHA512. | [optional][default to 'SHA1'] |
| **digits** | **Integer** | The number of digits in the generated TOTP token. This value can either be 6 or 8. | [optional][default to 6] |
| **exported** | **Boolean** | Determines if a QR code and url are returned upon generating a key. Only used if generate is true. | [optional][default to true] |
| **generate** | **Boolean** | Determines if a key should be generated by OpenBao or if a key is being passed from another service. | [optional][default to false] |
| **issuer** | **String** | The name of the key's issuing organization. Required if generate is true. | [optional] |
| **key** | **String** | The shared master key used to generate a TOTP token. Only used if generate is false. | [optional] |
| **key_size** | **Integer** | Determines the size in bytes of the generated key. Only used if generate is true. | [optional][default to 20] |
| **period** | **Integer** | The length of time used to generate a counter for the TOTP token calculation. | [optional][default to 30] |
| **qr_size** | **Integer** | The pixel size of the generated square QR code. Only used if generate is true and exported is true. If this value is 0, a QR code will not be returned. | [optional][default to 200] |
| **skew** | **Integer** | The number of delay periods that are allowed when validating a TOTP token. This value can either be 0 or 1. Only used if generate is true. | [optional][default to 1] |
| **url** | **String** | A TOTP url string containing all of the parameters for key setup. Only used if generate is false. | [optional] |

## Example

```ruby
require 'openbao_client'

instance = OpenbaoClient::TotpCreateKeyRequest.new(
  account_name: null,
  algorithm: null,
  digits: null,
  exported: null,
  generate: null,
  issuer: null,
  key: null,
  key_size: null,
  period: null,
  qr_size: null,
  skew: null,
  url: null
)
```