Class SubjectAlternativeNames

java.lang.Object
com.azure.security.keyvault.certificates.models.SubjectAlternativeNames
All Implemented Interfaces:
com.azure.json.JsonSerializable<SubjectAlternativeNames>

public final class SubjectAlternativeNames extends Object implements com.azure.json.JsonSerializable<SubjectAlternativeNames>
The subject alternate names of a X509 object.
  • Constructor Details

    • SubjectAlternativeNames

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

    • getEmails

      public List<String> getEmails()
      Get the emails property: Email addresses.
      Returns:
      the emails value.
    • setEmails

      public SubjectAlternativeNames setEmails(List<String> emails)
      Set the emails property: Email addresses.
      Parameters:
      emails - the emails value to set.
      Returns:
      the SubjectAlternativeNames object itself.
    • getDnsNames

      public List<String> getDnsNames()
      Get the dnsNames property: Domain names.
      Returns:
      the dnsNames value.
    • setDnsNames

      public SubjectAlternativeNames setDnsNames(List<String> dnsNames)
      Set the dnsNames property: Domain names.
      Parameters:
      dnsNames - the dnsNames value to set.
      Returns:
      the SubjectAlternativeNames object itself.
    • getUserPrincipalNames

      public List<String> getUserPrincipalNames()
      Get the userPrincipalNames property: User principal names.
      Returns:
      the userPrincipalNames value.
    • setUserPrincipalNames

      public SubjectAlternativeNames setUserPrincipalNames(List<String> userPrincipalNames)
      Set the userPrincipalNames property: User principal names.
      Parameters:
      userPrincipalNames - the userPrincipalNames value to set.
      Returns:
      the SubjectAlternativeNames object itself.
    • toJson

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

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