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.
108 |
# File 'lib/vault/api/secret.rb', line 108 field :accessor |
#client_token ⇒ String (readonly)
The client token for this authentication.
113 |
# File 'lib/vault/api/secret.rb', line 113 field :client_token |
#lease_duration ⇒ Fixnum (readonly)
Number of seconds the token is valid.
118 |
# File 'lib/vault/api/secret.rb', line 118 field :lease_duration |
#metadata ⇒ Hash<Symbol, Object>? (readonly)
Arbitrary metadata from the authentication.
127 |
# File 'lib/vault/api/secret.rb', line 127 field :metadata, freeze: true |
#policies ⇒ Array<String>? (readonly)
List of policies attached to this authentication.
136 |
# File 'lib/vault/api/secret.rb', line 136 field :policies, freeze: true |
#renewable ⇒ Boolean (readonly)
Returns whether this authentication is renewable.
145 |
# File 'lib/vault/api/secret.rb', line 145 field :renewable, as: :renewable? |