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 Summary
ConstructorsConstructorDescriptionCreates an instance of SubjectAlternativeNames class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SubjectAlternativeNamesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SubjectAlternativeNames from the JsonReader.Get the dnsNames property: Domain names.Get the emails property: Email addresses.Get the userPrincipalNames property: User principal names.setDnsNames(List<String> dnsNames) Set the dnsNames property: Domain names.Set the emails property: Email addresses.setUserPrincipalNames(List<String> userPrincipalNames) Set the userPrincipalNames property: User principal names.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SubjectAlternativeNames
public SubjectAlternativeNames()Creates an instance of SubjectAlternativeNames class.
-
-
Method Details
-
getEmails
-
setEmails
Set the emails property: Email addresses.- Parameters:
emails- the emails value to set.- Returns:
- the SubjectAlternativeNames object itself.
-
getDnsNames
-
setDnsNames
Set the dnsNames property: Domain names.- Parameters:
dnsNames- the dnsNames value to set.- Returns:
- the SubjectAlternativeNames object itself.
-
getUserPrincipalNames
-
setUserPrincipalNames
Set the userPrincipalNames property: User principal names.- Parameters:
userPrincipalNames- the userPrincipalNames value to set.- Returns:
- the SubjectAlternativeNames object itself.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-