SubjectAlternativeNames Class

  • java.lang.Object
    • com.azure.security.keyvault.certificates.models.SubjectAlternativeNames

Implements

public final class SubjectAlternativeNames
implements JsonSerializable<SubjectAlternativeNames>

The subject alternate names of a X509 object.

Constructor Summary

Constructor Description
SubjectAlternativeNames()

Creates an instance of SubjectAlternativeNames class.

Method Summary

Modifier and Type Method and Description
static SubjectAlternativeNames fromJson(JsonReader jsonReader)

Reads an instance of SubjectAlternativeNames from the JsonReader.

List<String> getDnsNames()

Get the dnsNames property: Domain names.

List<String> getEmails()

Get the emails property: Email addresses.

List<String> getUserPrincipalNames()

Get the userPrincipalNames property: User principal names.

SubjectAlternativeNames setDnsNames(List<String> dnsNames)

Set the dnsNames property: Domain names.

SubjectAlternativeNames setEmails(List<String> emails)

Set the emails property: Email addresses.

SubjectAlternativeNames setUserPrincipalNames(List<String> userPrincipalNames)

Set the userPrincipalNames property: User principal names.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

SubjectAlternativeNames

public SubjectAlternativeNames()

Creates an instance of SubjectAlternativeNames class.

Method Details

fromJson

public static SubjectAlternativeNames fromJson(JsonReader jsonReader)

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.

getDnsNames

public List getDnsNames()

Get the dnsNames property: Domain names.

Returns:

the dnsNames value.

getEmails

public List getEmails()

Get the emails property: Email addresses.

Returns:

the emails value.

getUserPrincipalNames

public List getUserPrincipalNames()

Get the userPrincipalNames property: User principal names.

Returns:

the userPrincipalNames value.

setDnsNames

public SubjectAlternativeNames setDnsNames(List dnsNames)

Set the dnsNames property: Domain names.

Parameters:

dnsNames - the dnsNames value to set.

Returns:

the SubjectAlternativeNames object itself.

setEmails

public SubjectAlternativeNames setEmails(List emails)

Set the emails property: Email addresses.

Parameters:

emails - the emails value to set.

Returns:

the SubjectAlternativeNames object itself.

setUserPrincipalNames

public SubjectAlternativeNames setUserPrincipalNames(List userPrincipalNames)

Set the userPrincipalNames property: User principal names.

Parameters:

userPrincipalNames - the userPrincipalNames value to set.

Returns:

the SubjectAlternativeNames object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to