ClientCertificateCommonName Class

  • java.lang.Object
    • com.azure.resourcemanager.servicefabric.models.ClientCertificateCommonName

Implements

public final class ClientCertificateCommonName
implements JsonSerializable<ClientCertificateCommonName>

Describes the client certificate details using common name.

Constructor Summary

Constructor Description
ClientCertificateCommonName()

Creates an instance of ClientCertificateCommonName class.

Method Summary

Modifier and Type Method and Description
String certificateCommonName()

Get the certificateCommonName property: The common name of the client certificate.

String certificateIssuerThumbprint()

Get the certificateIssuerThumbprint property: The issuer thumbprint of the client certificate.

static ClientCertificateCommonName fromJson(JsonReader jsonReader)

Reads an instance of ClientCertificateCommonName from the JsonReader.

boolean isAdmin()

Get the isAdmin property: Indicates if the client certificate has admin access to the cluster.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ClientCertificateCommonName withCertificateCommonName(String certificateCommonName)

Set the certificateCommonName property: The common name of the client certificate.

ClientCertificateCommonName withCertificateIssuerThumbprint(String certificateIssuerThumbprint)

Set the certificateIssuerThumbprint property: The issuer thumbprint of the client certificate.

ClientCertificateCommonName withIsAdmin(boolean isAdmin)

Set the isAdmin property: Indicates if the client certificate has admin access to the cluster.

Methods inherited from java.lang.Object

Constructor Details

ClientCertificateCommonName

public ClientCertificateCommonName()

Creates an instance of ClientCertificateCommonName class.

Method Details

certificateCommonName

public String certificateCommonName()

Get the certificateCommonName property: The common name of the client certificate.

Returns:

the certificateCommonName value.

certificateIssuerThumbprint

public String certificateIssuerThumbprint()

Get the certificateIssuerThumbprint property: The issuer thumbprint of the client certificate.

Returns:

the certificateIssuerThumbprint value.

fromJson

public static ClientCertificateCommonName fromJson(JsonReader jsonReader)

Reads an instance of ClientCertificateCommonName from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ClientCertificateCommonName if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

isAdmin

public boolean isAdmin()

Get the isAdmin property: Indicates if the client certificate has admin access to the cluster. Non admin clients can perform only read only operations on the cluster.

Returns:

the isAdmin value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCertificateCommonName

public ClientCertificateCommonName withCertificateCommonName(String certificateCommonName)

Set the certificateCommonName property: The common name of the client certificate.

Parameters:

certificateCommonName - the certificateCommonName value to set.

Returns:

the ClientCertificateCommonName object itself.

withCertificateIssuerThumbprint

public ClientCertificateCommonName withCertificateIssuerThumbprint(String certificateIssuerThumbprint)

Set the certificateIssuerThumbprint property: The issuer thumbprint of the client certificate.

Parameters:

certificateIssuerThumbprint - the certificateIssuerThumbprint value to set.

Returns:

the ClientCertificateCommonName object itself.

withIsAdmin

public ClientCertificateCommonName withIsAdmin(boolean isAdmin)

Set the isAdmin property: Indicates if the client certificate has admin access to the cluster. Non admin clients can perform only read only operations on the cluster.

Parameters:

isAdmin - the isAdmin value to set.

Returns:

the ClientCertificateCommonName object itself.

Applies to