Class CertificateAuthentication
java.lang.Object
com.azure.resourcemanager.network.models.CertificateAuthentication
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CertificateAuthentication>
public final class CertificateAuthentication
extends Object
implements com.azure.json.JsonSerializable<CertificateAuthentication>
Certificate Authentication information for a certificate based authentication connection.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CertificateAuthentication class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CertificateAuthenticationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CertificateAuthentication from the JsonReader.Get the inboundAuthCertificateChain property: Inbound authentication certificate public keys.Get the inboundAuthCertificateSubjectName property: Inbound authentication certificate subject name.Get the outboundAuthCertificate property: Keyvault secret ID for outbound authentication certificate.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withInboundAuthCertificateChain(List<String> inboundAuthCertificateChain) Set the inboundAuthCertificateChain property: Inbound authentication certificate public keys.withInboundAuthCertificateSubjectName(String inboundAuthCertificateSubjectName) Set the inboundAuthCertificateSubjectName property: Inbound authentication certificate subject name.withOutboundAuthCertificate(String outboundAuthCertificate) Set the outboundAuthCertificate property: Keyvault secret ID for outbound authentication certificate.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
-
CertificateAuthentication
public CertificateAuthentication()Creates an instance of CertificateAuthentication class.
-
-
Method Details
-
outboundAuthCertificate
Get the outboundAuthCertificate property: Keyvault secret ID for outbound authentication certificate.- Returns:
- the outboundAuthCertificate value.
-
withOutboundAuthCertificate
Set the outboundAuthCertificate property: Keyvault secret ID for outbound authentication certificate.- Parameters:
outboundAuthCertificate- the outboundAuthCertificate value to set.- Returns:
- the CertificateAuthentication object itself.
-
inboundAuthCertificateSubjectName
Get the inboundAuthCertificateSubjectName property: Inbound authentication certificate subject name.- Returns:
- the inboundAuthCertificateSubjectName value.
-
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.
-
inboundAuthCertificateChain
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CertificateAuthentication>- Throws:
IOException
-
fromJson
public static CertificateAuthentication fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-