Unmarshal the secret from a slice of bytes into its structured format. Implementations must copy any bytes they retain: store backends zero the source buffer after Unmarshal returns to avoid leaking plaintext.
(data []byte)
| 63 | // Implementations must copy any bytes they retain: store backends zero |
| 64 | // the source buffer after Unmarshal returns to avoid leaking plaintext. |
| 65 | Unmarshal(data []byte) error |
| 66 | // Metadata returns a key-value pair of non-sensitive data about the secret |
| 67 | Metadata() map[string]string |
| 68 | // SetMetadata allows the caller to set the secrets non-sensitive data |
no outgoing calls