Class: Vault::SecretAuth
Overview
SecretAuth is a struct that contains the information about auth data, if present. This is never returned alone and is usually embededded in a Secret.
Instance Attribute Summary collapse
-
#accessor ⇒ String
readonly
Accessor for the token.
-
#client_token ⇒ String
readonly
The client token for this authentication.
-
#lease_duration ⇒ Fixnum
readonly
Number of seconds the token is valid.
-
#metadata ⇒ Hash<Symbol, Object>?
readonly
Arbitrary metadata from the authentication.
-
#policies ⇒ Array<String>?
readonly
List of policies attached to this authentication.
-
#renewable ⇒ Boolean
readonly
Returns whether this authentication is renewable.
Method Summary
Methods inherited from Response
#==, decode, #initialize, #to_h
Constructor Details
This class inherits a constructor from Vault::Response
Instance Attribute Details
#accessor ⇒ String (readonly)
Accessor for the token. This is like a ‘lease_id`, but for a token.
93 |
# File 'lib/vault/api/secret.rb', line 93 field :accessor |
#client_token ⇒ String (readonly)
The client token for this authentication.
98 |
# File 'lib/vault/api/secret.rb', line 98 field :client_token |
#lease_duration ⇒ Fixnum (readonly)
Number of seconds the token is valid.
103 |
# File 'lib/vault/api/secret.rb', line 103 field :lease_duration |
#metadata ⇒ Hash<Symbol, Object>? (readonly)
Arbitrary metadata from the authentication.
112 |
# File 'lib/vault/api/secret.rb', line 112 field :metadata, freeze: true |
#policies ⇒ Array<String>? (readonly)
List of policies attached to this authentication.
121 |
# File 'lib/vault/api/secret.rb', line 121 field :policies, freeze: true |
#renewable ⇒ Boolean (readonly)
Returns whether this authentication is renewable.
130 |
# File 'lib/vault/api/secret.rb', line 130 field :renewable, as: :renewable? |