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
161 |
# File 'lib/vault/api/secret.rb', line 161 field :creation_time, load: ->(v) { Time.parse(v) } |
#token ⇒ String (readonly)
Wrapped response token. This token may be used to unwrap the response.
151 |
# File 'lib/vault/api/secret.rb', line 151 field :token |
#ttl ⇒ Fixnum (readonly)
The TTL on the token returned in seconds.
166 |
# File 'lib/vault/api/secret.rb', line 166 field :ttl |
#wrapped_accessor ⇒ String (readonly)
Accessor for the wrapped token. This is like a ‘lease_id`, but for a token.
156 |
# File 'lib/vault/api/secret.rb', line 156 field :wrapped_accessor |