Class X509Credentials
java.lang.Object
com.azure.resourcemanager.deviceregistry.models.X509Credentials
The x509 certificate for authentication mode Certificate.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the certificateReference property: A reference to secret containing the certificate and private key (e.g.void
validate()
Validates the instance.withCertificateReference
(String certificateReference) Set the certificateReference property: A reference to secret containing the certificate and private key (e.g.
-
Constructor Details
-
X509Credentials
public X509Credentials()Creates an instance of X509Credentials class.
-
-
Method Details
-
certificateReference
Get the certificateReference property: A reference to secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx).- Returns:
- the certificateReference value.
-
withCertificateReference
Set the certificateReference property: A reference to secret containing the certificate and private key (e.g. stored as .der/.pem or .der/.pfx).- Parameters:
certificateReference
- the certificateReference value to set.- Returns:
- the X509Credentials object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-