Share via


CertificateAuthentication Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.CertificateAuthentication

Implements

public final class CertificateAuthentication
implements JsonSerializable<CertificateAuthentication>

Certificate Authentication information for a certificate based authentication connection.

Constructor Summary

Constructor Description
CertificateAuthentication()

Creates an instance of CertificateAuthentication class.

Method Summary

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

Reads an instance of CertificateAuthentication from the JsonReader.

List<String> inboundAuthCertificateChain()

Get the inboundAuthCertificateChain property: Inbound authentication certificate public keys.

String inboundAuthCertificateSubjectName()

Get the inboundAuthCertificateSubjectName property: Inbound authentication certificate subject name.

String outboundAuthCertificate()

Get the outboundAuthCertificate property: Keyvault secret ID for outbound authentication certificate.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CertificateAuthentication withInboundAuthCertificateChain(List<String> inboundAuthCertificateChain)

Set the inboundAuthCertificateChain property: Inbound authentication certificate public keys.

CertificateAuthentication withInboundAuthCertificateSubjectName(String inboundAuthCertificateSubjectName)

Set the inboundAuthCertificateSubjectName property: Inbound authentication certificate subject name.

CertificateAuthentication withOutboundAuthCertificate(String outboundAuthCertificate)

Set the outboundAuthCertificate property: Keyvault secret ID for outbound authentication certificate.

Methods inherited from java.lang.Object

Constructor Details

CertificateAuthentication

public CertificateAuthentication()

Creates an instance of CertificateAuthentication class.

Method Details

fromJson

public static CertificateAuthentication fromJson(JsonReader jsonReader)

Reads an instance of CertificateAuthentication from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CertificateAuthentication 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 CertificateAuthentication.

inboundAuthCertificateChain

public List<String> inboundAuthCertificateChain()

Get the inboundAuthCertificateChain property: Inbound authentication certificate public keys.

Returns:

the inboundAuthCertificateChain value.

inboundAuthCertificateSubjectName

public String inboundAuthCertificateSubjectName()

Get the inboundAuthCertificateSubjectName property: Inbound authentication certificate subject name.

Returns:

the inboundAuthCertificateSubjectName value.

outboundAuthCertificate

public String outboundAuthCertificate()

Get the outboundAuthCertificate property: Keyvault secret ID for outbound authentication certificate.

Returns:

the outboundAuthCertificate value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withInboundAuthCertificateChain

public CertificateAuthentication withInboundAuthCertificateChain(List<String> inboundAuthCertificateChain)

Set the inboundAuthCertificateChain property: Inbound authentication certificate public keys.

Parameters:

inboundAuthCertificateChain - the inboundAuthCertificateChain value to set.

Returns:

the CertificateAuthentication object itself.

withInboundAuthCertificateSubjectName

public CertificateAuthentication withInboundAuthCertificateSubjectName(String inboundAuthCertificateSubjectName)

Set the inboundAuthCertificateSubjectName property: Inbound authentication certificate subject name.

Parameters:

inboundAuthCertificateSubjectName - the inboundAuthCertificateSubjectName value to set.

Returns:

the CertificateAuthentication object itself.

withOutboundAuthCertificate

public CertificateAuthentication withOutboundAuthCertificate(String outboundAuthCertificate)

Set the outboundAuthCertificate property: Keyvault secret ID for outbound authentication certificate.

Parameters:

outboundAuthCertificate - the outboundAuthCertificate value to set.

Returns:

the CertificateAuthentication object itself.

Applies to