AuthCredential Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.AuthCredential

Implements

public final class AuthCredential
implements JsonSerializable<AuthCredential>

Authentication credential stored for an upstream.

Constructor Summary

Constructor Description
AuthCredential()

Creates an instance of AuthCredential class.

Method Summary

Modifier and Type Method and Description
CredentialHealth credentialHealth()

Get the credentialHealth property: This provides data pertaining to the health of the auth credential.

static AuthCredential fromJson(JsonReader jsonReader)

Reads an instance of AuthCredential from the JsonReader.

CredentialName name()

Get the name property: The name of the credential.

String passwordSecretIdentifier()

Get the passwordSecretIdentifier property: KeyVault Secret URI for accessing the password.

JsonWriter toJson(JsonWriter jsonWriter)
String usernameSecretIdentifier()

Get the usernameSecretIdentifier property: KeyVault Secret URI for accessing the username.

void validate()

Validates the instance.

AuthCredential withName(CredentialName name)

Set the name property: The name of the credential.

AuthCredential withPasswordSecretIdentifier(String passwordSecretIdentifier)

Set the passwordSecretIdentifier property: KeyVault Secret URI for accessing the password.

AuthCredential withUsernameSecretIdentifier(String usernameSecretIdentifier)

Set the usernameSecretIdentifier property: KeyVault Secret URI for accessing 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:

the credentialHealth value.

fromJson

public static AuthCredential fromJson(JsonReader jsonReader)

Reads an instance of AuthCredential from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AuthCredential if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the AuthCredential.

name

public CredentialName name()

Get the name property: The name of the credential.

Returns:

the name value.

passwordSecretIdentifier

public String passwordSecretIdentifier()

Get the passwordSecretIdentifier property: KeyVault Secret URI for accessing the password.

Returns:

the passwordSecretIdentifier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

usernameSecretIdentifier

public String usernameSecretIdentifier()

Get the usernameSecretIdentifier property: KeyVault Secret URI for accessing the username.

Returns:

the usernameSecretIdentifier value.

validate

public void validate()

Validates the instance.

withName

public AuthCredential withName(CredentialName name)

Set the name property: The name of the credential.

Parameters:

name - the name value to set.

Returns:

the AuthCredential object itself.

withPasswordSecretIdentifier

public AuthCredential withPasswordSecretIdentifier(String passwordSecretIdentifier)

Set the passwordSecretIdentifier property: KeyVault Secret URI for accessing the password.

Parameters:

passwordSecretIdentifier - the passwordSecretIdentifier value to set.

Returns:

the AuthCredential object itself.

withUsernameSecretIdentifier

public AuthCredential withUsernameSecretIdentifier(String usernameSecretIdentifier)

Set the usernameSecretIdentifier property: KeyVault Secret URI for accessing the username.

Parameters:

usernameSecretIdentifier - the usernameSecretIdentifier value to set.

Returns:

the AuthCredential object itself.

Applies to