X509CAReferences Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. provisioning. service. configs. X509CAReferences
- com.
public class X509CAReferences
Representation of a single Device Provisioning Service X509 Primary and Secondary CA reference.
this class creates a representation of an X509 CA references. It can receive primary and secondary CA references, but only the primary is mandatory.
Users must provide the CA reference as a String
. This class will encapsulate both in a single X509Attestation.
The following JSON is an example of the result of this class.
{
"primary": "ValidCAReference-1",
"secondary": "validCAReference-2"
}
Constructor Summary
Constructor | Description |
---|---|
X509CAReferences(X509CAReferences x509CAReferences) |
Constructor [COPY] |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPrimary()
Deprecated
as of provisioning-service-client version 1.3.3, please use getPrimaryFinal()
Getter for the primary. |
final java.lang.String |
getPrimaryFinal()
Getter for the primary. |
java.lang.String |
getSecondary()
Deprecated
as of provisioning-service-client version 1.3.3, please use getSecondaryFinal()
Getter for the secondary. |
final java.lang.String |
getSecondaryFinal()
Getter for the secondary. |
Methods inherited from java.lang.Object
Constructor Details
X509CAReferences
public X509CAReferences(X509CAReferences x509CAReferences)
Constructor [COPY]
Creates a new instance of the X509CAReferences
copping the content of the provided one.
Parameters:
X509CAReferences
to copy.
Method Details
getPrimary
public String getPrimary()
Deprecated
Getter for the primary.
Returns:
String
with the stored primary. It cannot be null
.getPrimaryFinal
public final String getPrimaryFinal()
Getter for the primary.
Returns:
String
with the stored primary. It cannot be null
.getSecondary
public String getSecondary()
Deprecated
Getter for the secondary.
Returns:
String
with the stored secondary. It can be null
.getSecondaryFinal
public final String getSecondaryFinal()
Getter for the secondary.
Returns:
String
with the stored secondary. It can be null
.Applies to
Azure SDK for Java