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 SubjectAlternativeNames
fromJson
(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.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
Get the emails property: Email addresses.- Returns:
- the emails value.
-
setEmails
Set the emails property: Email addresses.- Parameters:
emails
- the emails value to set.- Returns:
- the SubjectAlternativeNames object itself.
-
getDnsNames
Get the dnsNames property: Domain names.- Returns:
- the dnsNames value.
-
setDnsNames
Set the dnsNames property: Domain names.- Parameters:
dnsNames
- the dnsNames value to set.- Returns:
- the SubjectAlternativeNames object itself.
-
getUserPrincipalNames
Get the userPrincipalNames property: User principal names.- Returns:
- the userPrincipalNames value.
-
setUserPrincipalNames
Set the userPrincipalNames property: User principal names.- Parameters:
userPrincipalNames
- the userPrincipalNames value to set.- Returns:
- the SubjectAlternativeNames object itself.
-
toJson
- Specified by:
toJson
in 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.
-