Class YAMLSecretsFileConnector
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
org.odpi.openmetadata.adapters.connectors.secretsstore.yaml.YAMLSecretsFileConnector
- All Implemented Interfaces:
AuditLoggingComponent,SecureConnectorExtension,VirtualConnectorExtension
YAMLSecretsStoreConnector retrieves secrets from a YAML File
-
Nested Class Summary
Nested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
ConnectorBase.ProtectedConnection -
Field Summary
Fields inherited from class org.odpi.openmetadata.adapters.connectors.secretsstore.yaml.YAMLSecretsStoreConnector
secretsStore, secretsStoreFile, securityAccessControlMap, userAccountMapFields inherited from class org.odpi.openmetadata.frameworks.connectors.SecretsStoreConnector
secretsCollectionNameFields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
auditLog, connectionBean, connectorInstanceId, embeddedConnectors, messageFormatter, secretsStoreConnectorMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteSecretsCollection(String collectionName) Delete the requested secrets collection from the secrets store.Retrieve the refresh time from the secrets store.voidsaveSecretsCollection(String collectionName, SecretsCollection newSecretsCollection) Save the requested secrets collection in the secrets store.voidsetSecretsCollectionName(String secretsCollectionName) Dynamically set the secrets collection name for the secrets store.voidstart()Indicates that the connector is completely configured and can begin processing.Methods inherited from class org.odpi.openmetadata.adapters.connectors.secretsstore.yaml.YAMLSecretsStoreConnector
deleteSecurityAccessControl, deleteUser, getNamedList, getNamedLists, getRefreshTimeInterval, getSecret, getSecurityAccessControl, getUser, getUsers, initialize, ofForm, ofJSON, refreshSecrets, saveSecrets, saveSecurityAccessControl, saveUserMethods inherited from class org.odpi.openmetadata.frameworks.connectors.SecretsStoreConnector
checkSecretsStillValid, getConnectorComponentDescription, getSecretsCollectionName, getSecretsLocation, getSecretsProvider, resetRefreshTime, setAuditLogMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
combineConfigurationProperties, disconnect, disconnectConnectors, equals, fromCamelToCanonicalCase, fromCanonicalToCamelCase, fromCanonicalToKebabCase, fromCanonicalToSnakeCase, fromKebabToCanonicalCase, fromSnakeToCanonicalCase, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayConfigurationProperty, getBooleanConfigurationProperty, getConnection, getConnectorInstanceId, getDateConfigurationProperty, getIntConfigurationProperty, getLongConfigurationProperty, getSecretsCollectionName, getSecretsLocation, getSecretsProvider, getStringConfigurationProperty, getStringConfigurationProperty, getSuppliedPlaceholderProperties, hashCode, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, logExceptionRecord, logRecord, logRecord, throwMissingConfigurationProperty, throwMissingEndpointAddress, throwMissingResource, throwNoAsset, throwWrongTypeOfAsset, throwWrongTypeOfResource, throwWrongTypeOfRootSchema, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, refreshStatistics, setStatisticProperty, setStatisticTimestamp
-
Constructor Details
-
YAMLSecretsFileConnector
public YAMLSecretsFileConnector()
-
-
Method Details
-
start
Indicates that the connector is completely configured and can begin processing.- Overrides:
startin classYAMLSecretsStoreConnector- Throws:
ConnectorCheckedException- the connector detected a problem.UserNotAuthorizedException- the connector was disconnected before/during start
-
getSecretsStore
Retrieve the refresh time from the secrets store.- Returns:
- how long the secrets can be cached - 0 means indefinitely
-
setSecretsCollectionName
Dynamically set the secrets collection name for the secrets store.- Parameters:
secretsCollectionName- name of the secrets collection
-
saveSecretsCollection
public void saveSecretsCollection(String collectionName, SecretsCollection newSecretsCollection) throws ConnectorCheckedException Save the requested secrets collection in the secrets store.- Parameters:
collectionName- collectionName for the savenewSecretsCollection- associated collection details- Throws:
ConnectorCheckedException- a problem with the connector
-
deleteSecretsCollection
Delete the requested secrets collection from the secrets store.- Parameters:
collectionName- name for the lookup- Throws:
ConnectorCheckedException- a problem with the connector
-