Class: Vault::WrapInfo

Inherits:
Response show all
Defined in:
lib/vault/api/secret.rb

Overview

WrapInfo is the information returned by a wrapped response. This is almost always embedded as part of a Secret.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Response

#==, decode, #initialize, #to_h

Constructor Details

This class inherits a constructor from Vault::Response

Instance Attribute Details

#creation_timeTime (readonly)

Date & time when the wrapped token was created

Returns:

  • (Time)


164
# File 'lib/vault/api/secret.rb', line 164

field :creation_time, load: ->(v) { Time.parse(v) }

#tokenString (readonly)

Wrapped response token. This token may be used to unwrap the response.

Returns:

  • (String)


154
# File 'lib/vault/api/secret.rb', line 154

field :token

#ttlFixnum (readonly)

The TTL on the token returned in seconds.

Returns:

  • (Fixnum)


169
# File 'lib/vault/api/secret.rb', line 169

field :ttl

#wrapped_accessorString (readonly)

Accessor for the wrapped token. This is like a ‘lease_id`, but for a token.

Returns:

  • (String)


159
# File 'lib/vault/api/secret.rb', line 159

field :wrapped_accessor