Class TokenCredentialsProperties

java.lang.Object
com.azure.resourcemanager.containerregistry.models.TokenCredentialsProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<TokenCredentialsProperties>

public final class TokenCredentialsProperties extends Object implements com.azure.json.JsonSerializable<TokenCredentialsProperties>
The properties of the credentials that can be used for authenticating the token.
  • Constructor Details

    • TokenCredentialsProperties

      public TokenCredentialsProperties()
      Creates an instance of TokenCredentialsProperties class.
  • Method Details

    • certificates

      public List<TokenCertificate> certificates()
      Get the certificates property: The certificates property.
      Returns:
      the certificates value.
    • withCertificates

      public TokenCredentialsProperties withCertificates(List<TokenCertificate> certificates)
      Set the certificates property: The certificates property.
      Parameters:
      certificates - the certificates value to set.
      Returns:
      the TokenCredentialsProperties object itself.
    • passwords

      public List<TokenPassword> passwords()
      Get the passwords property: The passwords property.
      Returns:
      the passwords value.
    • withPasswords

      public TokenCredentialsProperties withPasswords(List<TokenPassword> passwords)
      Set the passwords property: The passwords property.
      Parameters:
      passwords - the passwords value to set.
      Returns:
      the TokenCredentialsProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<TokenCredentialsProperties>
      Throws:
      IOException
    • fromJson

      public static TokenCredentialsProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.