Interface Credentialed
- All Known Subinterfaces:
AwsComputeSource, AzureComputeSource, ComputeProvisionStrategy, ComputeSource, GceComputeSource, OciComputeSource
- All Known Implementing Classes:
AwsFleetComputeSource, AwsInstancesComputeSource, AzureInstancesComputeSource, AzureScaleSetComputeSource, GceInstanceGroupComputeSource, GceInstancesComputeSource, OciInstancePoolComputeSource, OciInstancesComputeSource, SimulatorComputeSource, SingleSourceProvisionStrategy, SplitProvisionStrategy, WaterfallProvisionStrategy
public interface Credentialed
Interface implemented by entity classes that require credentials.
-
Method Summary
Modifier and TypeMethodDescriptioncombineCredentials(Collection<?> possibleCredentialeds) Utility method used to combine the names of credentials used by any elements of the specified collection into a single set.Return the names of the credentials to be used for this Credentialed entity.tryGetCredentials(Object possibleCredentialed) Utility method used to get credentials from an object if it is Credentialed
-
Method Details
-
tryGetCredentials
Utility method used to get credentials from an object if it is Credentialed- Parameters:
possibleCredentialed- an object that may implement Credentialed- Returns:
- a set of credential names from the specified object, if it implements Credentialed; otherwise, emptySet
-
combineCredentials
Utility method used to combine the names of credentials used by any elements of the specified collection into a single set.- Parameters:
possibleCredentialeds- a collection of objects that may implement Credentialed- Returns:
- a set of all credential names combined from the specified collection
-
getCredentials
-