Class: Vault::WrapInfo
Overview
WrapInfo is the information returned by a wrapped response. This is almost always embedded as part of a Secret.
Instance Attribute Summary collapse
-
#creation_time ⇒ Time
readonly
Date & time when the wrapped token was created.
-
#token ⇒ String
readonly
Wrapped response token.
-
#ttl ⇒ Fixnum
readonly
The TTL on the token returned in seconds.
-
#wrapped_accessor ⇒ String
readonly
Accessor for the wrapped token.
Method Summary
Methods inherited from Response
#==, decode, #initialize, #to_h
Constructor Details
This class inherits a constructor from Vault::Response
Instance Attribute Details
#creation_time ⇒ Time (readonly)
Date & time when the wrapped token was created
164 |
# File 'lib/vault/api/secret.rb', line 164 field :creation_time, load: ->(v) { Time.parse(v) } |
#token ⇒ String (readonly)
Wrapped response token. This token may be used to unwrap the response.
154 |
# File 'lib/vault/api/secret.rb', line 154 field :token |
#ttl ⇒ Fixnum (readonly)
The TTL on the token returned in seconds.
169 |
# File 'lib/vault/api/secret.rb', line 169 field :ttl |
#wrapped_accessor ⇒ String (readonly)
Accessor for the wrapped token. This is like a ‘lease_id`, but for a token.
159 |
# File 'lib/vault/api/secret.rb', line 159 field :wrapped_accessor |