AuthCredential Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. AuthCredential
- com.
Implements
public final class AuthCredential
implements JsonSerializable<AuthCredential>
Authentication credential stored for an upstream.
Constructor Summary
Constructor | Description |
---|---|
AuthCredential() |
Creates an instance of Auth |
Method Summary
Modifier and Type | Method and Description |
---|---|
Credential |
credentialHealth()
Get the credential |
static
Auth |
fromJson(JsonReader jsonReader)
Reads an instance of Auth |
Credential |
name()
Get the name property: The name of the credential. |
String |
passwordSecretIdentifier()
Get the password |
Json |
toJson(JsonWriter jsonWriter) |
String |
usernameSecretIdentifier()
Get the username |
void |
validate()
Validates the instance. |
Auth |
withName(CredentialName name)
Set the name property: The name of the credential. |
Auth |
withPasswordSecretIdentifier(String passwordSecretIdentifier)
Set the password |
Auth |
withUsernameSecretIdentifier(String usernameSecretIdentifier)
Set the username |
Methods inherited from java.lang.Object
Constructor Details
AuthCredential
public AuthCredential()
Creates an instance of AuthCredential class.
Method Details
credentialHealth
public CredentialHealth credentialHealth()
Get the credentialHealth property: This provides data pertaining to the health of the auth credential.
Returns:
fromJson
public static AuthCredential fromJson(JsonReader jsonReader)
Reads an instance of AuthCredential from the JsonReader.
Parameters:
Returns:
Throws:
name
public CredentialName name()
Get the name property: The name of the credential.
Returns:
passwordSecretIdentifier
public String passwordSecretIdentifier()
Get the passwordSecretIdentifier property: KeyVault Secret URI for accessing the password.
Returns:
toJson
usernameSecretIdentifier
public String usernameSecretIdentifier()
Get the usernameSecretIdentifier property: KeyVault Secret URI for accessing the username.
Returns:
validate
public void validate()
Validates the instance.
withName
public AuthCredential withName(CredentialName name)
Set the name property: The name of the credential.
Parameters:
Returns:
withPasswordSecretIdentifier
public AuthCredential withPasswordSecretIdentifier(String passwordSecretIdentifier)
Set the passwordSecretIdentifier property: KeyVault Secret URI for accessing the password.
Parameters:
Returns:
withUsernameSecretIdentifier
public AuthCredential withUsernameSecretIdentifier(String usernameSecretIdentifier)
Set the usernameSecretIdentifier property: KeyVault Secret URI for accessing the username.
Parameters:
Returns:
Applies to
Azure SDK for Java