Class TokenCertificate

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

public final class TokenCertificate extends Object
The properties of a certificate used for authenticating a token.
  • Constructor Details

    • TokenCertificate

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

    • name

      public TokenCertificateName name()
      Get the name property: The name property.
      Returns:
      the name value.
    • withName

      public TokenCertificate withName(TokenCertificateName name)
      Set the name property: The name property.
      Parameters:
      name - the name value to set.
      Returns:
      the TokenCertificate object itself.
    • expiry

      public OffsetDateTime expiry()
      Get the expiry property: The expiry datetime of the certificate.
      Returns:
      the expiry value.
    • withExpiry

      public TokenCertificate withExpiry(OffsetDateTime expiry)
      Set the expiry property: The expiry datetime of the certificate.
      Parameters:
      expiry - the expiry value to set.
      Returns:
      the TokenCertificate object itself.
    • thumbprint

      public String thumbprint()
      Get the thumbprint property: The thumbprint of the certificate.
      Returns:
      the thumbprint value.
    • withThumbprint

      public TokenCertificate withThumbprint(String thumbprint)
      Set the thumbprint property: The thumbprint of the certificate.
      Parameters:
      thumbprint - the thumbprint value to set.
      Returns:
      the TokenCertificate object itself.
    • encodedPemCertificate

      public String encodedPemCertificate()
      Get the encodedPemCertificate property: Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.
      Returns:
      the encodedPemCertificate value.
    • withEncodedPemCertificate

      public TokenCertificate withEncodedPemCertificate(String encodedPemCertificate)
      Set the encodedPemCertificate property: Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.
      Parameters:
      encodedPemCertificate - the encodedPemCertificate value to set.
      Returns:
      the TokenCertificate object itself.
    • validate

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