Class TokenCredentialsProperties

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

public final class TokenCredentialsProperties extends Object
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.