Class X509Credentials

java.lang.Object
com.azure.resourcemanager.deviceregistry.models.X509Credentials

public final class X509Credentials extends Object
The x509 certificate for authentication mode Certificate.
  • Constructor Details

    • X509Credentials

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

    • certificateReference

      public String certificateReference()
      Get the certificateReference property: A reference to secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx).
      Returns:
      the certificateReference value.
    • withCertificateReference

      public X509Credentials withCertificateReference(String certificateReference)
      Set the certificateReference property: A reference to secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx).
      Parameters:
      certificateReference - the certificateReference value to set.
      Returns:
      the X509Credentials object itself.
    • validate

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