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)


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

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

#tokenString (readonly)

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

Returns:

  • (String)


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

field :token

#ttlFixnum (readonly)

The TTL on the token returned in seconds.

Returns:

  • (Fixnum)


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

field :ttl

#wrapped_accessorString (readonly)

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

Returns:

  • (String)


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

field :wrapped_accessor