Class YAMLSecretsStoreConnector
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.frameworks.connectors.SecretsStoreConnector
org.odpi.openmetadata.adapters.connectors.secretsstore.yaml.YAMLSecretsStoreConnector
- All Implemented Interfaces:
org.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent,org.odpi.openmetadata.frameworks.connectors.SecureConnectorExtension,org.odpi.openmetadata.frameworks.connectors.VirtualConnectorExtension
public class YAMLSecretsStoreConnector
extends org.odpi.openmetadata.frameworks.connectors.SecretsStoreConnector
YAMLSecretsStoreConnector retrieves secrets from environment variables. Each secret is named for its environment variable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongRetrieve the refresh time from the secrets store.Retrieve a secret from the secrets store.voidstart()Indicates that the connector is completely configured and can begin processing.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.SecretsStoreConnector
checkSecretsStillValid, getConnectorComponentDescription, setAuditLogMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
disconnect, equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, setStatisticProperty, setStatisticTimestamp
-
Constructor Details
-
YAMLSecretsStoreConnector
public YAMLSecretsStoreConnector()
-
-
Method Details
-
start
public void start() throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedExceptionIndicates that the connector is completely configured and can begin processing.- Overrides:
startin classorg.odpi.openmetadata.frameworks.connectors.SecretsStoreConnector- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- there is a problem within the connector.
-
getRefreshTimeInterval
public long getRefreshTimeInterval() throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedExceptionRetrieve the refresh time from the secrets store.- Specified by:
getRefreshTimeIntervalin classorg.odpi.openmetadata.frameworks.connectors.SecretsStoreConnector- Returns:
- how long the secrets can be cached - 0 means indefinitely
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- there is a problem with the connector
-
getSecret
Retrieve a secret from the secrets store.- Specified by:
getSecretin classorg.odpi.openmetadata.frameworks.connectors.SecretsStoreConnector- Parameters:
secretName- name of the secret.- Returns:
- secret
-