Partilhar via


X509CAReferences Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.provisioning.service.configs.X509CAReferences

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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 - the original X509CAReferences to copy.

Method Details

getPrimary


public String getPrimary()

Deprecated

as of provisioning-service-client version 1.3.3, please use getPrimaryFinal()

Getter for the primary.

Returns:

the String with the stored primary. It cannot be null.

getPrimaryFinal

public final String getPrimaryFinal()

Getter for the primary.

Returns:

the String with the stored primary. It cannot be null.

getSecondary


public String getSecondary()

Deprecated

as of provisioning-service-client version 1.3.3, please use getSecondaryFinal()

Getter for the secondary.

Returns:

the String with the stored secondary. It can be null.

getSecondaryFinal

public final String getSecondaryFinal()

Getter for the secondary.

Returns:

the String with the stored secondary. It can be null.

Applies to