Credentials Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. Credentials
- com.
public final class Credentials
The parameters that describes a set of credentials that will be used when a run is invoked.
Constructor Summary
Constructor | Description |
---|---|
Credentials() |
Creates an instance of Credentials class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Custom |
customRegistries()
Get the custom |
Source |
sourceRegistry()
Get the source |
void |
validate()
Validates the instance. |
Credentials |
withCustomRegistries(Map<String,CustomRegistryCredentials> customRegistries)
Set the custom |
Credentials |
withSourceRegistry(SourceRegistryCredentials sourceRegistry)
Set the source |
Methods inherited from java.lang.Object
Constructor Details
Credentials
public Credentials()
Creates an instance of Credentials class.
Method Details
customRegistries
public Map
Get the customRegistries property: Describes the credential parameters for accessing other custom registries. The key for the dictionary item will be the registry login server (myregistry.azurecr.io) and the value of the item will be the registry credentials for accessing the registry.
Returns:
sourceRegistry
public SourceRegistryCredentials sourceRegistry()
Get the sourceRegistry property: Describes the credential parameters for accessing the source registry.
Returns:
validate
public void validate()
Validates the instance.
withCustomRegistries
public Credentials withCustomRegistries(Map
Set the customRegistries property: Describes the credential parameters for accessing other custom registries. The key for the dictionary item will be the registry login server (myregistry.azurecr.io) and the value of the item will be the registry credentials for accessing the registry.
Parameters:
Returns:
withSourceRegistry
public Credentials withSourceRegistry(SourceRegistryCredentials sourceRegistry)
Set the sourceRegistry property: Describes the credential parameters for accessing the source registry.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for