Class: Stripe::V2::Iam::ApiKeyRotateParams::PublicKey::PemKey

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/iam/api_key_rotate_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(algorithm: nil, data: nil) ⇒ PemKey

Returns a new instance of PemKey.



15
16
17
18
# File 'lib/stripe/params/v2/iam/api_key_rotate_params.rb', line 15

def initialize(algorithm: nil, data: nil)
  @algorithm = algorithm
  @data = data
end

Instance Attribute Details

#algorithmObject

The encryption algorithm used with this key (e.g., RSA).



11
12
13
# File 'lib/stripe/params/v2/iam/api_key_rotate_params.rb', line 11

def algorithm
  @algorithm
end

#dataObject

The PEM-encoded public key data. Newlines are required between header/footer and body, and optional within the body.



13
14
15
# File 'lib/stripe/params/v2/iam/api_key_rotate_params.rb', line 13

def data
  @data
end