java.lang.Object
com.inductiveautomation.ignition.gateway.secrets.Secret<T>
Type Parameters:
T - the type of SecretConfig associated with this Secret

public abstract sealed class Secret<T extends SecretConfig> extends Object

Helper class which aids in retrieving the current Plaintext value of a secret without having to be concerned with the implementation details of embedded vs referenced secrets.

To create a new instance of Secret, call create(GatewayContext, SecretConfig) and pass in a GatewayContext and a SecretConfig.

To get the current Plaintext value from the Secret, call getPlaintext().