Partager via


TokenCredentialsProperties Class

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

Implements

public final class TokenCredentialsProperties
implements JsonSerializable<TokenCredentialsProperties>

The properties of the credentials that can be used for authenticating the token.

Constructor Summary

Constructor Description
TokenCredentialsProperties()

Creates an instance of TokenCredentialsProperties class.

Method Summary

Modifier and Type Method and Description
List<TokenCertificate> certificates()

Get the certificates property: The certificates property.

static TokenCredentialsProperties fromJson(JsonReader jsonReader)

Reads an instance of TokenCredentialsProperties from the JsonReader.

List<TokenPassword> passwords()

Get the passwords property: The passwords property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TokenCredentialsProperties withCertificates(List<TokenCertificate> certificates)

Set the certificates property: The certificates property.

TokenCredentialsProperties withPasswords(List<TokenPassword> passwords)

Set the passwords property: The passwords property.

Methods inherited from java.lang.Object

Constructor Details

TokenCredentialsProperties

public TokenCredentialsProperties()

Creates an instance of TokenCredentialsProperties class.

Method Details

certificates

public List certificates()

Get the certificates property: The certificates property.

Returns:

the certificates value.

fromJson

public static TokenCredentialsProperties fromJson(JsonReader jsonReader)

Reads an instance of TokenCredentialsProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TokenCredentialsProperties 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 TokenCredentialsProperties.

passwords

public List passwords()

Get the passwords property: The passwords property.

Returns:

the passwords value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCertificates

public TokenCredentialsProperties withCertificates(List certificates)

Set the certificates property: The certificates property.

Parameters:

certificates - the certificates value to set.

Returns:

the TokenCredentialsProperties object itself.

withPasswords

public TokenCredentialsProperties withPasswords(List passwords)

Set the passwords property: The passwords property.

Parameters:

passwords - the passwords value to set.

Returns:

the TokenCredentialsProperties object itself.

Applies to