Class AuthCredential
java.lang.Object
com.azure.resourcemanager.containerregistry.models.AuthCredential
Authentication credential stored for an upstream.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the credentialHealth property: This provides data pertaining to the health of the auth credential.name()Get the name property: The name of the credential.Get the passwordSecretIdentifier property: KeyVault Secret URI for accessing the password.Get the usernameSecretIdentifier property: KeyVault Secret URI for accessing the username.voidvalidate()Validates the instance.withName(CredentialName name) Set the name property: The name of the credential.withPasswordSecretIdentifier(String passwordSecretIdentifier) Set the passwordSecretIdentifier property: KeyVault Secret URI for accessing the password.withUsernameSecretIdentifier(String usernameSecretIdentifier) Set the usernameSecretIdentifier property: KeyVault Secret URI for accessing the username.
-
Constructor Details
-
AuthCredential
public AuthCredential()Creates an instance of AuthCredential class.
-
-
Method Details
-
name
Get the name property: The name of the credential.- Returns:
- the name value.
-
withName
Set the name property: The name of the credential.- Parameters:
name- the name value to set.- Returns:
- the AuthCredential object itself.
-
usernameSecretIdentifier
Get the usernameSecretIdentifier property: KeyVault Secret URI for accessing the username.- Returns:
- the usernameSecretIdentifier value.
-
withUsernameSecretIdentifier
Set the usernameSecretIdentifier property: KeyVault Secret URI for accessing the username.- Parameters:
usernameSecretIdentifier- the usernameSecretIdentifier value to set.- Returns:
- the AuthCredential object itself.
-
passwordSecretIdentifier
Get the passwordSecretIdentifier property: KeyVault Secret URI for accessing the password.- Returns:
- the passwordSecretIdentifier value.
-
withPasswordSecretIdentifier
Set the passwordSecretIdentifier property: KeyVault Secret URI for accessing the password.- Parameters:
passwordSecretIdentifier- the passwordSecretIdentifier value to set.- Returns:
- the AuthCredential object itself.
-
credentialHealth
Get the credentialHealth property: This provides data pertaining to the health of the auth credential.- Returns:
- the credentialHealth value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-