Class CertificateAuthentication

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

public final class CertificateAuthentication extends Object implements com.azure.json.JsonSerializable<CertificateAuthentication>
Certificate Authentication information for a certificate based authentication connection.
  • Constructor Details

    • CertificateAuthentication

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

    • outboundAuthCertificate

      public String outboundAuthCertificate()
      Get the outboundAuthCertificate property: Keyvault secret ID for outbound authentication certificate.
      Returns:
      the outboundAuthCertificate value.
    • withOutboundAuthCertificate

      public CertificateAuthentication withOutboundAuthCertificate(String outboundAuthCertificate)
      Set the outboundAuthCertificate property: Keyvault secret ID for outbound authentication certificate.
      Parameters:
      outboundAuthCertificate - the outboundAuthCertificate value to set.
      Returns:
      the CertificateAuthentication object itself.
    • inboundAuthCertificateSubjectName

      public String inboundAuthCertificateSubjectName()
      Get the inboundAuthCertificateSubjectName property: Inbound authentication certificate subject name.
      Returns:
      the inboundAuthCertificateSubjectName value.
    • withInboundAuthCertificateSubjectName

      public CertificateAuthentication withInboundAuthCertificateSubjectName(String inboundAuthCertificateSubjectName)
      Set the inboundAuthCertificateSubjectName property: Inbound authentication certificate subject name.
      Parameters:
      inboundAuthCertificateSubjectName - the inboundAuthCertificateSubjectName value to set.
      Returns:
      the CertificateAuthentication object itself.
    • inboundAuthCertificateChain

      public List<String> inboundAuthCertificateChain()
      Get the inboundAuthCertificateChain property: Inbound authentication certificate public keys.
      Returns:
      the inboundAuthCertificateChain value.
    • withInboundAuthCertificateChain

      public CertificateAuthentication withInboundAuthCertificateChain(List<String> inboundAuthCertificateChain)
      Set the inboundAuthCertificateChain property: Inbound authentication certificate public keys.
      Parameters:
      inboundAuthCertificateChain - the inboundAuthCertificateChain value to set.
      Returns:
      the CertificateAuthentication 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<CertificateAuthentication>
      Throws:
      IOException
    • fromJson

      public static CertificateAuthentication fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CertificateAuthentication from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CertificateAuthentication 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 CertificateAuthentication.