Class SecretsStoreConnector
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.frameworks.connectors.SecretsStoreConnector
- All Implemented Interfaces:
- AuditLoggingComponent,- SecureConnectorExtension,- VirtualConnectorExtension
- Direct Known Subclasses:
- EnvVarSecretsStoreConnector,- YAMLSecretsStoreConnector
SecretsStoreConnector is the interface for a connector that is able to retrieve secrets (passwords, certificates, ...) from a secure location.
 The secrets store connector is embedded in a connector that needs one or more secrets to perform its tasks.  Both connectors are initialised
 together by the ConnectorBroker.  The secrets store connector is called by the surrounding connector to extract the needed secrets.
 When the ConnectorBroker detects that there is a secrets store connector embedded in another connector, it attempts to retrieve the standard
 secrets for the corresponding connection object (if they are null):
 
- userId
- clearPassword
- encryptedPassword
- 
Nested Class SummaryNested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBaseConnectorBase.ProtectedConnection
- 
Field SummaryFieldsFields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBaseauditLog, connectionBean, connectorInstanceId, embeddedConnectors, messageFormatter, secretsStoreConnectorMap
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidCalled by subclass to determine if the secrets should be refreshedReturn the component description that is used by this connector in the audit log.getNamedList(String listName) Look up a particular named list in the collection.Return all of the known named lists in this collectionabstract longRetrieve the refresh time from the secrets store.abstract StringRetrieve a secret from the secrets store.Retrieve the requested user definitions stored in the secrets collection.getUsers()Retrieve any user definitions stored in the secrets collection.protected abstract voidRequest that the subclass refreshes its secrets.protected voidReset the next refresh timevoidsetAuditLog(AuditLog auditLog) Receive an audit log object that can be used to record audit log messages.voidstart()Indicates that the connector is completely configured and can begin processing.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBasecombineConfigurationProperties, disconnect, disconnectConnectors, equals, fromCanonicalToKebabCase, fromCanonicalToSnakeCase, fromKebabToCanonicalCase, fromSnakeToCanonicalCase, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayConfigurationProperty, getBooleanConfigurationProperty, getConnection, getConnectorInstanceId, getDateConfigurationProperty, getIntConfigurationProperty, getLongConfigurationProperty, getStringConfigurationProperty, getStringConfigurationProperty, getSuppliedPlaceholderProperties, hashCode, initialize, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, logExceptionRecord, logRecord, logRecord, throwMissingConfigurationProperty, throwMissingEndpointAddress, throwMissingResource, throwNoAsset, throwWrongTypeOfAsset, throwWrongTypeOfResource, throwWrongTypeOfRootSchema, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorclearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, refreshStatistics, setStatisticProperty, setStatisticTimestamp
- 
Field Details- 
secretsCollectionName
 
- 
- 
Constructor Details- 
SecretsStoreConnectorpublic SecretsStoreConnector()
 
- 
- 
Method Details- 
getConnectorComponentDescriptionReturn the component description that is used by this connector in the audit log.- Specified by:
- getConnectorComponentDescriptionin interface- AuditLoggingComponent
- Returns:
- id, name, description, wiki page URL.
 
- 
setAuditLogReceive an audit log object that can be used to record audit log messages. The caller has initialized it with the correct component description and log destinations.- Specified by:
- setAuditLogin interface- AuditLoggingComponent
- Parameters:
- auditLog- audit log object
 
- 
startIndicates that the connector is completely configured and can begin processing.- Overrides:
- startin class- ConnectorBase
- Throws:
- ConnectorCheckedException- there is a problem within the connector.
- UserNotAuthorizedException- the connector was disconnected before/during start
 
- 
checkSecretsStillValidCalled by subclass to determine if the secrets should be refreshed- Throws:
- ConnectorCheckedException
 
- 
refreshSecretsRequest that the subclass refreshes its secrets.- Throws:
- ConnectorCheckedException
 
- 
resetRefreshTimeReset the next refresh time- Throws:
- ConnectorCheckedException- problem with the store
 
- 
getSecretRetrieve a secret from the secrets store.- Parameters:
- secretName- name of the secret.
- Returns:
- secret
- Throws:
- ConnectorCheckedException- there is a problem with the connector
 
- 
getRefreshTimeIntervalRetrieve the refresh time from the secrets store.- Returns:
- how long the secrets can be cached - 0 means indefinitely
- Throws:
- ConnectorCheckedException- there is a problem with the connector
 
- 
getUserRetrieve the requested user definitions stored in the secrets collection.- Parameters:
- userId- userId for the lookup
- Returns:
- associated user details or null
- Throws:
- ConnectorCheckedException- there is a problem with the connector
 
- 
getUsersRetrieve any user definitions stored in the secrets collection.- Returns:
- map of userIds to user details
- Throws:
- ConnectorCheckedException- there is a problem with the connector
 
- 
getNamedListLook up a particular named list in the collection.- Parameters:
- listName- name of a list
- Returns:
- corresponding named list or null
- Throws:
- ConnectorCheckedException- there is a problem with the connector
 
- 
getNamedListsReturn all of the known named lists in this collection- Returns:
- map of named lists in this collection
- Throws:
- ConnectorCheckedException- there is a problem with the connector
 
 
-