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