Package com.morpheusdata.core
Interface MorpheusAccountCredentialService
- All Superinterfaces:
MorpheusDataQueryService<AccountCredential>,MorpheusDataService<AccountCredential,AccountCredentialIdentityProjection>
public interface MorpheusAccountCredentialService
extends MorpheusDataService<AccountCredential,AccountCredentialIdentityProjection>
Context methods for AccountCredential
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<ServiceResponse<AccountCredentialLink>>createCredentialLink(AccountCredential credential, String refType, String refUuid, String refName) Creates a credential link for a specified credential and associated ref information and returns the created link.io.reactivex.rxjava3.core.Single<Map>loadCredentialConfig(Map credentialConfig, Map refConfig) A utility method to loads credential data config from the args of an input form.io.reactivex.rxjava3.core.Maybe<AccountCredential>loadCredentials(AccountIntegration accountIntegration) io.reactivex.rxjava3.core.Maybe<AccountCredential>loadCredentials(BackupProvider backupProvider) io.reactivex.rxjava3.core.Maybe<AccountCredential>loadCredentials(Cloud cloud) io.reactivex.rxjava3.core.Maybe<AccountCredential>loadCredentials(ComputeServer computeServer) Loads the credential for a ComputeServer based on its AccountCredentialLink.io.reactivex.rxjava3.core.Maybe<AccountCredential>loadCredentials(NetworkServer networkServer) Loads the credential for a NetworkServer based on its AccountCredentialLink.io.reactivex.rxjava3.core.Maybe<AccountCredential>loadCredentials(StorageServer storageServer) Loads the credential for a StorageServer based on its AccountCredentialLink.Methods inherited from interface com.morpheusdata.core.MorpheusDataQueryService
count, find, get, list, list, listById, listOptions, listOptions, searchMethods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, create, remove, remove, save, save
-
Method Details
-
loadCredentialConfig
A utility method to loads credential data config from the args of an input form. May be used in OptionSourceServices to handle when a user selects an AccountCredential- Parameters:
credentialConfig- Pass through of args.credential elements from form payloadrefConfig- The base config to fall back on.. typically cloud.configMap- Returns:
- Observable
-
loadCredentials
-
loadCredentials
io.reactivex.rxjava3.core.Maybe<AccountCredential> loadCredentials(AccountIntegration accountIntegration) -
loadCredentials
-
loadCredentials
Loads the credential for a ComputeServer based on its AccountCredentialLink. For cypher-backed credentials, the credential data is populated from the per-link applied cypher key specific to this server, falling back to the base credential key if no link-specific value exists. This allows each device to carry its own unique credential value (e.g. a rotated password) while sharing the same AccountCredential.- Parameters:
computeServer- the server whose linked credential should be loaded- Returns:
- Maybe emitting the AccountCredential with data populated, or empty if no link exists
-
loadCredentials
Loads the credential for a StorageServer based on its AccountCredentialLink. For cypher-backed credentials, the credential data is populated from the per-link applied cypher key specific to this storage server, falling back to the base credential key if no link-specific value exists.- Parameters:
storageServer- the storage server whose linked credential should be loaded- Returns:
- Maybe emitting the AccountCredential with data populated, or empty if no link exists
-
loadCredentials
Loads the credential for a NetworkServer based on its AccountCredentialLink. For cypher-backed credentials, the credential data is populated from the per-link applied cypher key specific to this network server, falling back to the base credential key if no link-specific value exists.- Parameters:
networkServer- the network server whose linked credential should be loaded- Returns:
- Maybe emitting the AccountCredential with data populated, or empty if no link exists
-
createCredentialLink
io.reactivex.rxjava3.core.Single<ServiceResponse<AccountCredentialLink>> createCredentialLink(AccountCredential credential, String refType, String refUuid, String refName) Creates a credential link for a specified credential and associated ref information and returns the created link.- Parameters:
credential- the credential to create the link for.refType- The resource type the link will be used by.refUuid- The uuid for the resource the link will be used by.refName- The name of the resource the link will be used by.- Returns:
- ServiceResponse possibly containing a created AccountCredentialLink.
-